By piccoloprincipe
via neverstopbuilding.net
Submitted: Feb 24 2013 / 09:10
In this article I detail the process by which you can set up your controller actions in Zend Framework 2 to return either the default HTML, or JSON data depending on the “Accept Header” in the request. It incorporates changes related to a security update added since this very helpful article was written, and expands on some of the intricacies of making your web layer objects better “json providers.”
Tweet
SaveShareSend
Tags: frameworks, php, web services
Add your comment