protected function createModelParams()
 {
     $params = parent::createModelParams();
     $params['key'] = Yii::$app->request->get('key', NULL);
     $params['lang_code'] = Yii::$app->request->get('lang_code', NULL);
     return $params;
 }
示例#2
0
 public function actionUpdate($id)
 {
     Yii::$app->view->title = Yii::t('blog', 'Edit comment');
     return parent::actionUpdate($id);
 }
 public function actionUpdate($id)
 {
     Yii::$app->view->title = Yii::t('website-comments', 'Edit comment #{id}', ['id' => $id]);
     return parent::actionUpdate($id);
 }
示例#4
0
 public function actionUpdate($id)
 {
     $item = $this->getItem($id);
     Yii::$app->view->title = Yii::t('blog', 'Edit tag {title}', ['title' => $item->title]);
     return parent::actionUpdate($id);
 }