Ajax request and json response array in Yii framework

By Prem Tiwari in Yii framework. Updated on


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

Sharing is caring!


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

You might also like:

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.