Difference between #4 and #5 of
Simple Web APIs for your Yii App

Revision #5 has been created by shiv on Feb 2, 2014, 7:26:18 AM with the memo:

update code
« previous (#4) next (#6) »

Changes

Title unchanged

Simple Web APIs for your Yii App

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

API, JSON

Content changed

[...]
Yii::app()->end();
}
```


API Action Code
 
---------------
 
 
This is how you can modify you actual action code.It should not have render code. I have a array having few parameter like status, action, controller which i want to return back to mobile app. This is required if your APIs are called asynchronously. So response should have details on which action was called.
[...]
```

Example
:  Code
 
------------
 
[http://iseetv.biz/api/](
http://iseetv.biz/api/
 
 "Test Code: Api Response")
 
[http://t1.toxsl.in/download.php?file=eWlpX2FwaXRlc3Quemlw](
http://t1.toxsl.in/download.php?file=eWlpX2FwaXRlc3Quemlw "Yii API Sample Test Code") [ Only for 30 days ]
1 2
10 followers
Viewed: 30 830 times
Version: 1.1
Category: How-tos
Tags: API, JSON
Written by: shiv
Last updated by: CeBe
Created on: Jan 23, 2014
Last updated: 8 years ago
Update Article

Revisions

View all history