I have a XAMPP installation and an application built on the Zend Framework that runs in a normal apache2 + php5 environment. The application is in a properly configured vhost, and as a precaution, I also added .phtml files to match the php compiler
<FilesMatch "\.php$|\.php5$|\.php4$|\.php3$|\.phtml$|\.phpt$">
SetHandler application/x-httpd-php
</FilesMatch>
When I access any page of the application, I get php code displayed in the browser instead of the displayed html. The PHP files are compiled, so die ('aaa') anywhere before rendering works as expected. But when Zend_View includes a script file in the _run () method, everything is displayed in the browser as text.
I tested with a simple index.phtml file in the test directory and it acts like a php file. it is interpreted by php.exe, but when zend contains view scripts, I cannot understand what is happening.
Can anyone help?
source
share