• Register
Plug-in Tutorial Build an EC-CUBE plug-in

Top Commentators

114

1

EC Mike

SHOGUNSHOGUN

32

2

hrbabu

SAMURAISAMURAI

29

3

Sumant Jha

SAMURAISAMURAI

29

4

justcubed

SAMURAISAMURAI

21

5

Ashok Kafle

SAMURAISAMURAI

21

6

shahith

SAMURAISAMURAI

14

7

Jeemusu

KABUKIKABUKI

14

8

Yangsin

KABUKIKABUKI

9

9

Zaw Hlaing Bwar

GEISYAGEISYA

8

10

Fei Liu

GEISYAGEISYA

Ranking Key

  • FUJISANFUJISAN1,000+ posts
  • SAKURASAKURA500+ posts
  • SHOGUNSHOGUN100+ posts
  • NINJYANINJYA50+ posts
  • SAMURAISAMURAI20+ posts
  • KABUKIKABUKI10+ posts
  • GEISYAGEISYALess than 10 posts

EC Cube flow

+5 votes
Will you please explain me ec cube code flow? Thanks in advance.
asked 2013-05-08 by shahith (850 points) SAMURAISAMURAI

1 Answer

+6 votes
 
Best answer

Shahith,

Good question. I will try to list the main areas here:

1.  HTML DIRECTORY (xxx\html): These are the PHP files accessed from the browser.

2.  DATA\CLASS\PAGES:  Pages loaded in browser, access the data logic here.

*The HTML DIRECTORY and PAGES DIRECTORY share the same file/folder structure. This makes it easy to find the related files. The file name will begin with "LC_"

3.  TEMPLATE DIRECTORY (xxx\data\Smarty\templates): This renders the graphics etc. on the page. For example in step 2 you can define the template (.tpl) to load.

   $this->tpl_mainpage = 'test/test.tpl';

The TEMPLATE DIRECTORY also has a similar folder structure, so it is easy to identify the related tpl.

There is of course more code, but these are the essential parts. If you modify the action function in step 2, you can manipulate the data that displays in the template (step 3.)

Please view our plug-in tutorial for more information:

https://en.ec-cube.net/forum/plugin-guide

Thanks for the question. I am sure many people were curious about that too!

Michael

 

answered 2013-05-13 by EC Mike (6,360 points) SHOGUNSHOGUN
selected 2013-05-14 by shahith
Michael Thank you very much for answer.
...