public function onPreRender($param) { parent::onPreRender($param); $this->getActiveView(); // determine the active view $this->registerStyleSheet(); }