Since the update I can't include my php script anymore.
I come from 2.6.3 and it worked great using:
{php}
include("././././thepool/thepool.php");
{/php}
But now with the upgrade to the latest version I get:
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "./themes/default/template/index.tpl" on line 270 "{php}" unknown tag "php"' in ./include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0
Any idea?
Offline
Hello
That's normal; we updated Smarty which doesn't recommend anymore using php tags
use the standard way aka assign tpl variables from php to the tpl file or use prefilter or postfilter
Offline
I'm sorry I'm not that advanced in php or smarty to understand. Could you write what I have to write?
Thanks!
Offline