开发者

Zend_View Rendered with no PHP Code executed

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜