03-21-2009, 11:32 AM
|
#18 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
Quote:
Originally Posted by xenon
Find this line:
Code:
short_open_tag = Off
in your php.ini file, and change it to "On", then restart apache. That should do it.
PS: it was not required that you added the .phtml extension to the .htaccess file as the views (templates) are internally parsed by Zend (the template contents are evaluated by PHP, not directly accessed via the web browser). Also, you should use:
PHP Code:
<?php echo 'stuff'; ?>
instead of the short form, so that you will not have problems when going live with the project. If it's a test project it's ok, but you might get very angry if the server you're going to move the project to doesn't have short_open_tag on (and that is quite usual).
|
Ye, I found that line before and set it to On and restarted the Apache. However, the problem still persists.
I didn't add .phtml extension to .htaccess. I added it to httpd.conf in apache folder.
And yes, I tried it with regular PHP tags, but that didn't work either..  
__________________
|
|
|
|