php code not parsing in theme.tpl

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
stevestark5000
Forum Commoner
Posts: 61
Joined: Thu Jan 27, 2011 12:08 am

php code not parsing in theme.tpl

Post 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?
oscardog
Forum Contributor
Posts: 245
Joined: Thu Oct 23, 2008 4:43 pm

Re: php code not parsing in theme.tpl

Post by oscardog »

How're you including the file?

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

Post 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);
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: php code not parsing in theme.tpl

Post by Benjamin »

What framework are you using?
stevestark5000
Forum Commoner
Posts: 61
Joined: Thu Jan 27, 2011 12:08 am

Re: php code not parsing in theme.tpl

Post by stevestark5000 »

php
Post Reply