From 153581e1081ba4225eb93221aced493709cb606c Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 23 Dec 2005 03:31:07 +0000 Subject: Implemented new page storage method. --- framework/Exceptions/TErrorHandler.php | 4 ++-- framework/Exceptions/messages.txt | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'framework/Exceptions') diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php index 87d5d342..ca42c8ff 100644 --- a/framework/Exceptions/TErrorHandler.php +++ b/framework/Exceptions/TErrorHandler.php @@ -138,7 +138,7 @@ class TErrorHandler extends TModule header('Content-Type: text/html; charset=UTF-8'); if($param instanceof THttpException) $this->handleExternalError($param->getStatusCode(),$param); - else if(Prado::getApplication()->getMode()==='Debug') + else if(Prado::getApplication()->getMode()===TApplication::STATE_DEBUG) $this->displayException($param); else $this->handleExternalError(500,$param); @@ -192,7 +192,7 @@ class TErrorHandler extends TModule */ protected function handleRecursiveError($exception) { - if(Prado::getApplication()->getMode()==='Debug') + if(Prado::getApplication()->getMode()===TApplication::STATE_DEBUG) { echo "Recursive Error\n"; echo "

Recursive Error

\n"; diff --git a/framework/Exceptions/messages.txt b/framework/Exceptions/messages.txt index 651287e1..d32b3005 100644 --- a/framework/Exceptions/messages.txt +++ b/framework/Exceptions/messages.txt @@ -23,9 +23,8 @@ map_addition_disallowed = The new item cannot be added to the map. map_item_unremovable = The item cannot be removed from the map. map_data_not_iterable = Data must be either an array or an object implementing Traversable interface. -application_configfile_inexistent = Application configuration file '%s' does not exist. -application_statepath_invalid = Application state path '%s' does not exist or is not writable by Web server process. -application_module_existing = Application module '%s' cannot be registered twice. +application_configpath_inexistent = Application configuration path '%s' does not exist. +application_runtimepath_invalid = Application runtime path '%s' does not exist or is not writable by Web server process. application_service_invalid = Service '%s' must implement IService interface. application_service_unknown = Requested service '%s' is not defined. application_service_unavailable = Service Unavailable. @@ -77,6 +76,7 @@ memcache_port_unchangeable = TMemCache.Port cannot be modified after the modu errorhandler_errortemplatepath_invalid = TErrorHandler.ErrorTemplatePath '%s' is invalid. Make sure it is in namespace form and points to a valid directory containing error template files. pageservice_page_unknown = Page '%s' Not Found +pageservice_pageclass_unknown = Page class '%s' is unknown. pageservice_basepath_invalid = TPageService.BasePath '%s' is not a valid directory. pageservice_page_required = Page Name Required pageservice_defaultpage_unchangeable = TPageService.DefaultPage cannot be modified after the service is initialized. @@ -89,7 +89,7 @@ pageserviceconf_using_invalid = element must have a "namespace" attrib pageserviceconf_module_invalid = element must have an "id" attribute in page directory configuration file '%s'. pageserviceconf_moduletype_required = must have a "class" attribute in page directory configuration file '%s'. pageserviceconf_parameter_invalid = element must have an "id" attribute in page directory configuration file '%s'. -pageserviceconf_page_invalid = element must have an "id" attribute and a "class" attribute in page directory configuration file '%s'. +pageserviceconf_page_invalid = element must have an "id" attribute in page directory configuration file '%s'. template_templatefile_invalid = Template file '%s' cannot open. template_closingtag_unexpected = %s: Unexpected closing tag '%s' is found. -- cgit v1.2.3