php code not parsing in theme.tpl
Moderator: General Moderators
-
stevestark5000
- Forum Commoner
- Posts: 61
- Joined: Thu Jan 27, 2011 12:08 am
php code not parsing in theme.tpl
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
How're you including the file?
If you're using include() or require() it should just work.
If you're using include() or require() it should just work.
-
stevestark5000
- Forum Commoner
- Posts: 61
- Joined: Thu Jan 27, 2011 12:08 am
Re: php code not parsing in theme.tpl
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);
echo PHPWS_Template::processTemplate($THEME, 'layout', $_SESSION['OBJ_layout']->theme_dir . 'theme.tpl', FALSE);
Re: php code not parsing in theme.tpl
What framework are you using?
-
stevestark5000
- Forum Commoner
- Posts: 61
- Joined: Thu Jan 27, 2011 12:08 am