Search code examples
zend-frameworkescapingzend-view

Zend escape() function doesn't work


I am doing a tutorial according to this article. This is basic Hello World! example using Zend Framework.

When I am looking at the output on my browser it shows me escape($this->title);. I don't get the problem. Why Zend escape() function don't call and read this as a text.


Solution

  • Add this in your .htaccess file. Your problem is PHP short tag. If you write this in your .htaccess file your output on browser will be correct:

    php_value "short_open_tag" "on"