Jump to content

$Php_Handling Don't Work On Ps 1.5


Crezco

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...