Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function actionUpdate($id)
- {
- $model=$this->loadModel($id);
- // Uncomment the following line if AJAX validation is needed
- //$this->performAjaxValidation($model);
- echo $model->isNewRecord;
- if(isset($_POST['Program']))
- {
- $model->attributes = $_POST['Program'];
- if($model->save()){
- $this->redirect(array('admin'));
- }
- }
- $this->render('update',array(
- 'model'=>$model,
- ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement