summaryrefslogtreecommitdiff
path: root/framework/Web/Services/TPageService.php
diff options
context:
space:
mode:
authorDavid <ottodavid@gmx.net>2015-08-10 19:50:41 +0200
committerDavid <ottodavid@gmx.net>2015-08-11 08:34:39 +0200
commit606874e9a883ae547df198498fce6fca7b735466 (patch)
tree2f9e772926ee22e715411e79acd8e0adfe1de2cd /framework/Web/Services/TPageService.php
parentac81ab6d556ce52e98acf636bbcd8ad4d60ecf4e (diff)
Fix TProperyValue::ensureEnum and some unit tests class names
Diffstat (limited to 'framework/Web/Services/TPageService.php')
-rw-r--r--framework/Web/Services/TPageService.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php
index a52efd13..2973e67b 100644
--- a/framework/Web/Services/TPageService.php
+++ b/framework/Web/Services/TPageService.php
@@ -495,8 +495,9 @@ class TPageService extends \Prado\TService
{
$className=basename($path);
$namespacedClassName = static::PAGE_NAMESPACE_PREFIX .str_replace('.', '\\', $pagePath);
- if(!class_exists($className,false) && !class_exists($namespacedClassName, false))
- include_once($path.Prado::CLASS_FILE_EXT);
+
+ if(!class_exists($className,false) && !class_exists($namespacedClassName, false))
+ include_once($path.Prado::CLASS_FILE_EXT);
if(!class_exists($className,false))
$className = $namespacedClassName;
@@ -504,6 +505,9 @@ class TPageService extends \Prado\TService
else
{
$className=$this->getBasePageClass();
+ Prado::using($className);
+ if(($pos=strrpos($className,'.'))!==false)
+ $className=substr($className,$pos+1);
}
if(!class_exists($className,false) || ($className!=='TPage' && !is_subclass_of($className,'TPage')))