Ejemplo n.º 1
0
	/**
	 * 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);
		}
	}
Ejemplo n.º 2
0
	/**
	 * 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);
	}
Ejemplo n.º 3
0
	/**
	 * 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);
	}