public function init() { if (!$this->title) { $this->title = \Yii::$app->view->title; } parent::init(); // TODO: Change the autogenerated stub $this->description = String::truncate($this->description, 1000); }