Tagged: content-type

Zend Framework Logo 0

Disable Zend View Renderer

In case you need to disable Zend View’s Renderer because you want to return custom data (JSON, XML, etc.) simply using the following lines to do so: Then you can return your response in any format you want, just don’t forget to set the content type accordingly. That’s it.

Zend Framework Logo 0

Control Zend’s layout rendering and Content-Type specifications

In case you need to return content types other than the one set by server (Apache, etc.) or Zend itself use the following lines to quickly control Zend’s layout rendering and Content-Type specification. This is crucial for instance if your controller is required to return JSON or XML as part...