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);
- if(isset($_POST['TechnicalReport']))
- {
- $model->attributes=$_POST['TechnicalReport'];
- //$model->content = $_POST['TechnicalReport']['content'];
- echo $model->content;
- if($model->save())
- $this->redirect(array('view','id'=>$model->id));
- }
- $this->render('update',array(
- 'model'=>$model,
- ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement