title = CHtml::encode($title); $this->sid = substr(CSessionHelper::getId(), 16, 16); } /** * Add path to css file to render in page head. * * @param string $path */ public function addCssFile($path) { $this->cssFiles[$path] = $path; return $this; } /** * Add css style to render in page head. * * @param string $style */ public function addStyle($style) { $this->styles[] = $style; return $this; } /** * Add path to js file to render in page head. * * @param string $path */ public function addJsFile($path) { $this->jsFiles[$path] = $path; return $this; } /** * Add js script to render in page head after js file includes are rendered. * * @param string $js */ public function addJs($js) { $this->js[] = $js; return $this; } /** * Add js script to render in page head before js file includes are rendered. * * @param string $js */ public function addJsBeforeScripts($js) { $this->jsBefore[] = $js; return $this; } /** * Display page head html. */ public function display() { echo <<