News Feed
Jobs Feed
Sections




News Archive
Abou Kone's Blog:
Set up JSON action output in CakePHP 1.3
October 07, 2011 @ 08:45:00

Abou Kone has a recent post to his blog showing the CakePHP users out there how to set up JSON output for your actions in a few simple steps.

Working on setting up the Rest Plugin for CakePHP helped me realize that i wanted to set up JSON output for some of my actions. This way, if you request for example "www.yourapp.com/app/post/view/1.json" in the url, you will be returned the JSON post data. This excellent tutorial here will help you achieve it.

Changes include updates to configuration for routing, using the RequestHandler component and setting your actions to output the data correctly when the ".json" is detected on the request.

0 comments voice your opinion now!
json output cakephp tutorial configure framework


blog comments powered by Disqus

Similar Posts

Builderau.com.au: Cache PHP scripts with APC module

Leaseweb Labs Blog: Tuning Zend framework and Doctrine

DevShed: Improving Exception Throwing when Auto Loading Classes in PHP 5

Rudi's Blog: Get torrent data with PHP

Working Software Blog: Escaping single and double quotes for use with XPath queries in PHP


Community Events











Don't see your event here?
Let us know!


opinion database testing conference development rest usergroup framework symfony2 series interview zendframework2 community unittest phpunit introduction release functional podcast language

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework