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 ]