Ajax request and json response array in Yii framework

Prem Tiwari - - Yii framework


In this post i will explain the easy way to get the Ajax request and json response array in Yii framework. The controller will get and process the data then finally It will return the json encoded array.Using this response we can update the database tables.

In view/_form.php page

In Your controller page


Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer and a blogger by hobby.

Tags: , ,

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.