Advertisement
fernandezekiel

Untitled

Feb 26th, 2013
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. public function actionUpdate($id)
  2.     {
  3.         $model=$this->loadModel($id);
  4.  
  5.         // Uncomment the following line if AJAX validation is needed
  6.         // $this->performAjaxValidation($model);
  7.  
  8.         if(isset($_POST['TechnicalReport']))
  9.         {
  10.                        
  11.             $model->attributes=$_POST['TechnicalReport'];
  12.                         //$model->content = $_POST['TechnicalReport']['content'];
  13.                          echo $model->content;
  14.             if($model->save())
  15.                 $this->redirect(array('view','id'=>$model->id));
  16.         }
  17.  
  18.         $this->render('update',array(
  19.             'model'=>$model,
  20.         ));
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement