Created
July 8, 2013 12:03
-
-
Save damour/5948203 to your computer and use it in GitHub Desktop.
yii ajax validation controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected function performAjaxValidation($model) | |
| { | |
| if (isset($_POST['ajax']) && $_POST['ajax'] === 'user-form') { | |
| echo CActiveForm::validate($model); | |
| Yii::app()->end(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment