Created
June 27, 2013 11:45
-
-
Save damour/5875841 to your computer and use it in GitHub Desktop.
yii ajax flash messages
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
| if (isset($_POST['CategoryFeatureRestrictedValue'])) { | |
| $model->attributes = $_POST['CategoryFeatureRestrictedValue']; | |
| if ($model->validate()) { | |
| //$response['status'] = $model->save(); | |
| //$response['flash_msg'] = Yii::app()->user->getFlashes(); | |
| //echo CJSON::encode($response); | |
| $this->redirect(array('index', 'categoryFeatureId' => $model->category_feature_id)); | |
| } else { | |
| //Yii::app()->user->setFlash('category', 'Category feature was saved successfully'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment