Jump to content

Structure


chvd

Recommended Posts

Hello chvd,

 

Download starts from a file that is referenced here: Home - index.php, catalog page - category.php, cms - cms.php, search - search.php, etc. in these files there are two lines:

require (dirname (__FILE__). '/ config / config.inc.php'); / / configuration load (autoloader, define values, etc.)

ControllerFactory :: getController ('NAME_CONTROLLER') -> run (); / / controller call: SearchController is for search, IndexController is for the main page, CategoryController is for catalog , CMSController is for cms . What controller is called can be seen by viewing the content of the file the page is referred to.

Further, within the controller methods are performed in the following order:

$ this-> init ();

$ this-> preProcess ();

$ this-> displayHeader ();

$ this-> process ();

$ this-> displayContent ();

$ this-> displayFooter ();

All controllers inherit class from FrontControllerCore, which gives some certain understanding of the sequence of actions performed on the page. In what sequence are executed hook, you can see inside the controller, and the sequence in which modules are loaded inside the hook, you can see in the tab, module-> position or in the DB (database).

 

Best regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...