Page 1 of 1

$php_handling

Posted: Sat Jul 28, 2007 10:07 am
by ehsun7b
Hi

I've changed the $php_handling attribute in the cmsms\lib\smarty\Smarty.class.php from SMARTY_PHP_PASSTHRU to SMARTY_PHP_ALLOW and tried to put following code in the beginning of one of my templates:

{php}
  session_start();
{/php}

but it echoed the code instead of executing it. It seems that my change in the $php_handling does not have any effect!!!

Re: $php_handling

Posted: Sat Jul 28, 2007 12:37 pm
by tsw
crossposting isnt nice..

and did you check the config.php it has a setting for allowing {php} {/php} in templates..