get response in json/xml formate in cakephp

The given below code for ,you can set the response in json and xml formate so only you have to pass the .json and .xm in your URL

 

 

I have given you one method so you can use like that.

Use the url as it is like cake php but pass the .xm or .json like edit.xml or edit.json in URL

 

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *