From fb2ba05edf43665152150f65731a80ecb327b5da Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 19 Feb 2006 05:10:07 +0000 Subject: Made TForm DefaultButton working. --- framework/Web/UI/TPage.php | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'framework/Web/UI/TPage.php') diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 6e83e3be..88606250 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -18,8 +18,6 @@ Prado::using('System.Web.UI.TTemplateControl'); Prado::using('System.Web.UI.TForm'); Prado::using('System.Web.UI.TClientScriptManager'); -//Prado::using('System.Web - /** * TPage class * @@ -209,46 +207,6 @@ class TPage extends TTemplateControl $this->unloadRecursive(); } - /** - * Loads and parses the page template. - * This method overrides the parent implementation by allowing loading - * a page template from a specified template file. - * @return ITemplate the parsed template structure - */ - protected function loadTemplate() - { - if($this->_templateFile===null) - return parent::loadTemplate(); - else - { - $template=$this->getService()->getTemplateManager()->getTemplateByFileName($this->_templateFile); - $this->setTemplate($template); - return $template; - } - } - - /** - * @return string the user-specified template file, defaults to null. - */ - public function getTemplateFile() - { - return $this->_templateFile; - } - - /** - * Sets the user-specified template file. - * The template file must be specified in a namespace format. - * @param string the user-specified template file. - * @throws TInvalidDataValueException if the file is not in namespace format. - */ - public function setTemplateFile($value) - { - if(($templateFile=Prado::getPathOfNamespace($value,TTemplateManager::TEMPLATE_FILE_EXT))===null || !is_file($templateFile)) - throw new TInvalidDataValueException('page_templatefile_invalid',$value); - else - $this->_templateFile=$templateFile; - } - /** * Registers a TForm instance to the page. * Note, a page can contain at most one TForm instance. -- cgit v1.2.3