News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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 "" 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

The Bakery: Latest Articles, Tutorials and Components

DevShed: Drawing More Complex Shapes with the GD Library in PHP Test Code Coverage: From Myth to Reality

Alexander Netkachev's Blog: Using Zend_Controller in subfolder

Phillip Norton's Blog: Getting Started With PHP DocBlox

Community Events

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

library symfony release podcast bugfix series interview community language unittest deployment install package opinion update framework laravel zendserver introduction api

All content copyright, 2014 :: - Powered by the Solar PHP Framework