summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Exceptions/messages.txt6
-rw-r--r--framework/core.php4
2 files changed, 8 insertions, 2 deletions
diff --git a/framework/Exceptions/messages.txt b/framework/Exceptions/messages.txt
index 72e159e8..63c03214 100644
--- a/framework/Exceptions/messages.txt
+++ b/framework/Exceptions/messages.txt
@@ -1,3 +1,9 @@
+prado_application_singleton_required = Prado.Application must only be set once.
+prado_component_unknown = Unable to create unknown component '%s'.
+prado_using_invalid = '%s' is not a valid namespace to be used. Make sure '.*' is appended if you want to use a namespace referring to a directory.
+prado_alias_redefined = Alias '%s' cannot be redefined.
+prado_alias_invalid = Alias '%s' refers to an invalid path '%s'. Only existing directories can be aliased.
+
component_property_undefined = Component property '%s.%s' is not defined.
component_property_readonly = Component property '%s.%s' is read-only.
component_event_undefined = Component event '%s.%s' is not defined.
diff --git a/framework/core.php b/framework/core.php
index 2a4ddcbb..f61761a9 100644
--- a/framework/core.php
+++ b/framework/core.php
@@ -480,7 +480,7 @@ class PradoBase
throw new TInvalidDataValueException('prado_using_invalid',$namespace);
else
{
- if($namespace[strlen($namespace)-1]==='*') // a file
+ if($namespace[strlen($namespace)-1]==='*') // a directory
{
if(is_dir($path))
{
@@ -490,7 +490,7 @@ class PradoBase
else
throw new TInvalidDataValueException('prado_using_invalid',$namespace);
}
- else // a directory
+ else // a file
{
if(is_file($path))
{