chvd Posted April 11, 2012 Share Posted April 11, 2012 Hello, in which file can i find structure of "index" of Prestashop? Link to comment Share on other sites More sharing options...
Valérie Assetskaya Posted April 11, 2012 Share Posted April 11, 2012 Hello chvd, If you mean search indexation so it's classes\Search.php->indexation() Regards Link to comment Share on other sites More sharing options...
chvd Posted April 11, 2012 Author Share Posted April 11, 2012 I mean something like this: (example) startpage [load headox1] [load headbox2] [load leftbox] [load middlebox] [loadrightbox] [load bottombox] endpage Link to comment Share on other sites More sharing options...
Valérie Assetskaya Posted April 12, 2012 Share Posted April 12, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now