Smarty 3 and {php} (General)

by edkgb, Sunday, September 04, 2011, 12:44 (4639 days ago) @ Alex

Hi Eddie!

The Smarty 2->3 upgrade notes say:

The {php} tag is disabled by default. The use of {php} tags is deprecated. It can be enabled with $smarty->allow_php_tag=true.


So you could try to add

$smarty->allow_php_tag=true;

after

$smarty = new Smarty;

in index.php (line 36).

Alex


Great News
Many thanks Alex and Milo for your help.
Adding

$smarty->allow_php_tag=true;

works.

Much thanks and appreciation
Eddie


Complete thread:

 RSS Feed of thread