Crezco Posted February 23, 2013 Share Posted February 23, 2013 HI everybody, I used to work with PS 1.4 and now I instal.led PS 1.5. I'm trying to insert some php code just to test the version, and of course I've change Smarty function: $php_handling = PHP_ALLOW But every time I insert code like "<?php" the system quotes it like "<!--<?php" and using the smarty quote {php} the pàge breaks. Is this a bug or something new on 1.5 version. Many thanks, Link to comment Share on other sites More sharing options...
Crezco Posted February 24, 2013 Author Share Posted February 24, 2013 ok, I see smarty version has changed to Smarty 3, and have to look into SmartyBC I'm gonna check it Link to comment Share on other sites More sharing options...
Crezco Posted February 25, 2013 Author Share Posted February 25, 2013 Fine, just have to change in config/Smarty.config.inc : Search the following code: require_once(_PS_SMARTY_DIR_.'Smarty.class.php'); global $smarty; $smarty = new Smarty(); And change for: require_once(_PS_SMARTY_DIR_.'SmartyBC.class.php'); global $smarty; $smarty = new SmartyBC(); Now you can edit PHP code into the tpl files 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