$php_handling

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
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!!!
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: $php_handling

Post by tsw »

crossposting isnt nice..

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

Return to “Developers Discussion”