summaryrefslogtreecommitdiff
path: root/framework/Exceptions
diff options
context:
space:
mode:
authorxue <>2005-12-23 03:31:07 +0000
committerxue <>2005-12-23 03:31:07 +0000
commit153581e1081ba4225eb93221aced493709cb606c (patch)
tree7b2a165708d6fb8e587749e3e0fe1f813c2011aa /framework/Exceptions
parent5c0517b7748dcfae1264d28df7ea111a67bd3aa4 (diff)
Implemented new page storage method.
Diffstat (limited to 'framework/Exceptions')
-rw-r--r--framework/Exceptions/TErrorHandler.php4
-rw-r--r--framework/Exceptions/messages.txt8
2 files changed, 6 insertions, 6 deletions
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 "<html><head><title>Recursive Error</title></head>\n";
echo "<body><h1>Recursive Error</h1>\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 = <using> element must have a "namespace" attrib
pageserviceconf_module_invalid = <module> element must have an "id" attribute in page directory configuration file '%s'.
pageserviceconf_moduletype_required = <module id="%s"> must have a "class" attribute in page directory configuration file '%s'.
pageserviceconf_parameter_invalid = <parameter> element must have an "id" attribute in page directory configuration file '%s'.
-pageserviceconf_page_invalid = <page> element must have an "id" attribute and a "class" attribute in page directory configuration file '%s'.
+pageserviceconf_page_invalid = <page> 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.