venkatesh Posted August 25, 2011 Share Posted August 25, 2011 Hi i find public $php_self = 'category.php'; this code in CategoryController.php file. whether category.php belongs to root file or class file? and i found category.php in two places 1.in root prestashop folder 2.inside classes folder. what is the purpose of that line? Thanks. Link to comment Share on other sites More sharing options...
shokinro Posted August 26, 2011 Share Posted August 26, 2011 it is mainly used to get the page name and and generate canonicalRedirection URL you can find it used in /classes/FrontController.php Link to comment Share on other sites More sharing options...
venkatesh Posted August 26, 2011 Author Share Posted August 26, 2011 Thanks shokinro I didn't find in FrontController.php and i found category.php in two places 1.in root prestashop folder 2.inside classes folder. whether category.php belongs to root file or class file? Link to comment Share on other sites More sharing options...
olea Posted August 26, 2011 Share Posted August 26, 2011 The category.php in the root is a controller, it displays a category to the end user. The Category.php (with uppercase) is the object describing and managing category Link to comment Share on other sites More sharing options...
Recommended Posts