Page 1 of 1

php_handling

Posted: Sat Jul 28, 2007 10:10 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: Mon Jul 30, 2007 1:22 pm
by Pierre M.
Hello,

as you are doing PHP coding inside Smarty, you should read http://smarty.php.net/

Pierre M.