public function render($writer) { if ($this->getFlushScriptFiles()) { $this->getPage()->getClientScript()->flushScriptFiles($writer, $this); } $this->renderCustomScriptFile($writer); $this->renderCustomScript($writer); }