public function getContent() { if ($this->_content !== null) { return $this->_content; } if ($content_id = \Yii::$app->request->get('content_id')) { $this->_content = CmsContent::findOne($content_id); } return $this->_content; }