Page 1 of 1
php code not parsing in theme.tpl
Posted: Sat May 07, 2011 2:39 am
by stevestark5000
I have a theme.tpl where php code is in but it is not parsing. how to tell php to parse .tpl without using php.ini?
Re: php code not parsing in theme.tpl
Posted: Sat May 07, 2011 7:08 am
by oscardog
How're you including the file?
If you're using include() or require() it should just work.
Re: php code not parsing in theme.tpl
Posted: Sat May 07, 2011 3:43 pm
by stevestark5000
i am not using include... if (is_file($_SESSION['OBJ_layout']->theme_dir . 'theme.tpl'))
echo PHPWS_Template::processTemplate($THEME, 'layout', $_SESSION['OBJ_layout']->theme_dir . 'theme.tpl', FALSE);
Re: php code not parsing in theme.tpl
Posted: Sun May 08, 2011 1:43 am
by Benjamin
What framework are you using?
Re: php code not parsing in theme.tpl
Posted: Tue May 10, 2011 12:28 am
by stevestark5000
php