Rubens Cury Posted February 21, 2015 Share Posted February 21, 2015 Hi, Does anybody have any idea why that all Prestashop's smarty global variables like {$base_dir}, {$modules_dir}, etc are coming empty on a tpl module file? Shoud I assign them or they come assigned by default? Thank you. Link to comment Share on other sites More sharing options...
Rolige Posted February 21, 2015 Share Posted February 21, 2015 Is strange, these variables are global and should be available in whatever tpl file. Link to comment Share on other sites More sharing options...
Rubens Cury Posted February 21, 2015 Author Share Posted February 21, 2015 Hi @COTOKO, Thank you for your reply. Yes, it is... It usually works perfectly. Would you please try to get any global variable from this specific file like {$modules_dir} \admin\themes\default\template\controllers\cart_rules\form.tpl Even it's a native Prestashop code it can simulates my problem... I don't know if I'm doing something wrong or if there's some specific restriction...] Thank you. Link to comment Share on other sites More sharing options...
Rolige Posted February 21, 2015 Share Posted February 21, 2015 Ok, but keep in mind that global variables of front office are not the same of the back office. 1 Link to comment Share on other sites More sharing options...
Rubens Cury Posted February 22, 2015 Author Share Posted February 22, 2015 Thank you for your message @COTOKO I thought the global variables were available for both (front and back office). Anyway, your explanation was very useful, even if only to make me sure that I'll have to assign them manually through my PHP. Any other suggestion will be very welcome. Thanks 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