开发者

Zend_View Rendered with no PHP Code executed

开发者 https://www.devze.com 2023-01-26 10:32 出处:网络
When rendering a Zend_View, the php code inside it is not executed and I get back the actual text of th开发者_高级运维e view.

When rendering a Zend_View, the php code inside it is not executed and I get back the actual text of th开发者_高级运维e view. Example:

<?echo 'Hello';?>

I would expect the output to be

Hello

instead I get back

<?echo 'Hello';?>

Configuration: xampp 1.7.3 (php 5.3.1) on Windows 7, Zend Framework 1.10.4

NOTE:

I DO have this issue

1. when running php from command line

2. when running phpunit through netbeans

I DON'T have this issue

1. when running php through Apache

2. when running phpunit from command line


Look at short tag configuration in the php ini you use in those situations and also see if processing .phtml is set up

to get the ini you are using on command line use php --ini

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号