public function beforeRender($view) { parent::beforeRender($view); $this->rewriteForSeo(); return true; }