What are the steps to create AJAX login in yiiframework? -
I just started learning AJAX and Yiiframework. What are the steps for creating a AJAX login form in Yii?
Thank you.
Try the following in your view, where the login button
and gt; function () {$ ("# result student corrects" full '='> function () {$ ("# Results Student Corrects "). RemoveClass (" Loading ");} ',));? & Gt;
#resultStudentCourse
that div The ID is where you need to load in your message, eg logged-in successfully
Then there is something like this in your controller.
If (Yii :: app () -> Request-> isAjaxRequest) {$ this-> renderPatial ('create', array ('model' = & gt; $ model))}
Hope this helps
Comments
Post a Comment