public function getClientScript()
{
if (!$this->_clientScript) {
$className = $classPath = $this->getService()->getClientScriptManagerClass();
if ($className !== '\\Prado\\Web\\UI\\TClientScriptManager' && !is_subclass_of($className, '\\Prado\\Web\\UI\\TClientScriptManager')) {
throw new THttpException(404, 'page_csmanagerclass_invalid', $className);
}
$this->_clientScript = new $className($this);
}
return $this->_clientScript;
}