/** * Updates a particular model. * If update is successful, the browser will be redirected to the 'view' page. * @param integer $id the ID of the model to be updated */ public function actionUpdate($id) { if ($id==Yii::app()->user->getId()) { $model=$this->loadModel($id); $name="ProfileChild"; parent::actionUpdate($model, $name); } else { $this->redirect('view/'.$model->id); } }
/** * Updates a particular model. * If update is successful, the browser will be redirected to the 'view' page. * @param integer $id the ID of the model to be updated */ public function actionUpdate($id) { $model=$this->loadModel($id); $name='Templates'; parent::actionUpdate($model, $name); }
/** * Updates a particular model. * If update is successful, the browser will be redirected to the 'view' page. * @param integer $id the ID of the model to be updated */ public function actionUpdate($id) { $model=$this->loadModel($id); $name='Marketing'; parent::actionUpdate($model, $name); }