summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TTemplate.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-01-25 20:04:57 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-01-25 20:04:57 +0100
commite4999b25052d1ad9400a0f9fd5289a49eea1bddc (patch)
tree50e9b819fc3326cf08e882b648f8dafc8fec3fa4 /framework/Web/UI/TTemplate.php
parent5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (diff)
More namespace changes
Changed version to 3.2.99; Attempt at fixing autoloading fixed enough namespaces to have some demos running
Diffstat (limited to 'framework/Web/UI/TTemplate.php')
-rw-r--r--framework/Web/UI/TTemplate.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/framework/Web/UI/TTemplate.php b/framework/Web/UI/TTemplate.php
index cf32c4cc..a19935ef 100644
--- a/framework/Web/UI/TTemplate.php
+++ b/framework/Web/UI/TTemplate.php
@@ -474,7 +474,7 @@ class TTemplate extends \Prado\TApplicationComponent implements ITemplate
$matchEnd=0;
$c=0;
$this->_directive=null;
- try
+ //try
{
for($i=0;$i<$n;++$i)
{
@@ -647,6 +647,7 @@ class TTemplate extends \Prado\TApplicationComponent implements ITemplate
if($textStart<strlen($input))
$tpl[$c++]=array($container,substr($input,$textStart));
}
+ /*
catch(\Exception $e)
{
if(($e instanceof TException) && ($e instanceof TTemplateException))
@@ -656,7 +657,7 @@ class TTemplate extends \Prado\TApplicationComponent implements ITemplate
else
$line=$this->_startingLine+count(explode("\n",substr($input,0,$matchEnd+1)));
$this->handleException($e,$line,$input);
- }
+ } */
if($this->_directive===null)
$this->_directive=array();
@@ -803,7 +804,7 @@ class TTemplate extends \Prado\TApplicationComponent implements ITemplate
else
$className=$type;
$class=new \ReflectionClass($className);
- if(is_subclass_of($className,'TControl') || $className==='TControl')
+ if(is_subclass_of($className,'\Prado\Web\UI\TControl') || $className==='\Prado\Web\UI\TControl')
{
foreach($attributes as $name=>$att)
{
@@ -842,7 +843,7 @@ class TTemplate extends \Prado\TApplicationComponent implements ITemplate
}
}
}
- else if(is_subclass_of($className,'TComponent') || $className==='TComponent')
+ else if(is_subclass_of($className,'\Prado\TComponent') || $className==='\Prado\TComponent')
{
foreach($attributes as $name=>$att)
{