Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function actionCreate()
- {
- $model=new User;
- // Uncomment the following line if AJAX validation is needed
- // $this->performAjaxValidation($model);
- if(isset($_POST))
- {
- $model->attributes=$_POST;
- if($model->validate())
- {
- if($model->save())
- $this->redirect(array('index'));
- }
- else
- echo "hey";
- }
- $this->render('create',array(
- 'model'=>$model,
- ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement