stefandunn Posted February 10, 2014 Share Posted February 10, 2014 Hi, I'm new to developing on Prestashop and Smarty templating system. The templating system looks relatively simple to grasp in terms of syntax and general coding practices, however I am a bit stumped by where the variables are being declared and which functions are available from Prestashop. I see in the cms.tpl file: {if isset($cms) && !isset($cms_category)} Where is the $cms class object being declared? Is this a PHP object, or a Smarty Object? And how can I obtain a full list of available objects and their methods. Is this something that I need to trawl through the module php file for? There seems to be a lack of information on this. Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
vekia Posted February 10, 2014 Share Posted February 10, 2014 variables are declared in controllers, for example, for $cms variable check CmsController.php located in controllers/front/ directory there is an definition of smarty array template variables. Link to comment Share on other sites More sharing options...
Recommended Posts