public function onPreRender($param) { parent::onPreRender($param); if ($this->getEnableDefaultStyle()) { $url = $this->publishAsset($this->getDefaultStyle() . '.css'); $this->getPage()->getClientScript()->registerStyleSheetFile($url, $url); } }
/** * Copy basic record details to the list/edit/search controls. */ public function onPreRender($param) { parent::onPreRender($param); $this->getListView()->copyFrom($this); $this->getEditView()->copyFrom($this); $this->getSearchControl()->copyFrom($this); }