Promokit Posted October 6, 2011 Share Posted October 6, 2011 Hi guys. I override link.php file in override/classes dir and have one simple question. How can I check for file exists or class exist in tpl file in the theme? Its for avoid warning messages when the link.php file doesn't exist in the needed folder. Thank you in advance Link to comment Share on other sites More sharing options...
MrBaseball34 Posted October 6, 2011 Share Posted October 6, 2011 php function file_exists in a smarty tag is your best bet. Link to comment Share on other sites More sharing options...
Promokit Posted October 7, 2011 Author Share Posted October 7, 2011 Thank you for your answer. I also thought to use this function, but I don't know how to set the right path for this function. {$base_dir} - dont working, cause need path like this "\www\prestashop\" Thank you in advance. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted October 10, 2011 Share Posted October 10, 2011 Use the define __PS_BASE_URI__ instead, it is the actual path to your store. Link to comment Share on other sites More sharing options...
Recommended Posts