php_handling

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
ehsun7b

php_handling

Post 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!!!
Pierre M.

Re: php_handling

Post by Pierre M. »

Hello,

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

Pierre M.
Locked

Return to “CMSMS Core”