diff options
Diffstat (limited to 'framework/Web/UI/TPage.php')
-rw-r--r-- | framework/Web/UI/TPage.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 8dc1f1e7..796d71cd 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -22,6 +22,10 @@ use Prado\Prado; use Prado\TPropertyValue; use Prado\Web\UI\ActiveControls\TActivePageAdapter; use Prado\Web\UI\ActiveControls\TCallbackClientScript; +use Prado\Web\UI\WebControls\THead; + +Prado::using('System.Web.UI.*'); +Prado::using('System.Web.UI.WebControls.*'); /** * TPage class @@ -593,11 +597,9 @@ class TPage extends TTemplateControl if(!$this->_clientScript) { $className = $classPath = $this->getService()->getClientScriptManagerClass(); Prado::using($className); - if(($pos=strrpos($className,'.'))!==false) - $className=substr($className,$pos+1); - if(!class_exists($className,false) || ($className!=='TClientScriptManager' && !is_subclass_of($className,'TClientScriptManager'))) - throw new THttpException(404,'page_csmanagerclass_invalid',$classPath); + 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); } @@ -873,7 +875,7 @@ class TPage extends TTemplateControl continue; else if($control=$this->findControl($key)) { - if($control instanceof IPostBackDataHandler) + if($control instanceof \Prado\Web\UI\IPostBackDataHandler) { if($control->loadPostData($key,$postData)) $this->_controlsPostDataChanged[]=$control; @@ -893,7 +895,7 @@ class TPage extends TTemplateControl { if($control=$this->findControl($key)) { - if($control instanceof IPostBackDataHandler) + if($control instanceof \Prado\Web\UI\IPostBackDataHandler) { if($control->loadPostData($key,$this->_postData)) $this->_controlsPostDataChanged[]=$control; |