public function init() { if (!$this->isShow()) { return false; } if ($this->model === null) { $this->model = Model::findByCode($this->code); } }