summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TConditional.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/TConditional.php')
-rw-r--r--framework/Web/UI/WebControls/TConditional.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TConditional.php b/framework/Web/UI/WebControls/TConditional.php
index f8d6a7ec..1a88c0a7 100644
--- a/framework/Web/UI/WebControls/TConditional.php
+++ b/framework/Web/UI/WebControls/TConditional.php
@@ -10,6 +10,8 @@
*/
namespace Prado\Web\UI\WebControls;
+use Prado\TPropertyValue;
+use Prado\Exceptions\TInvalidDataValueException;
/**
* TConditional class.
@@ -43,7 +45,7 @@ namespace Prado\Web\UI\WebControls;
* @package Prado\Web\UI\WebControls
* @since 3.1.1
*/
-class TConditional extends TControl
+class TConditional extends \Prado\Web\UI\TControl
{
private $_condition='true';
private $_trueTemplate;
@@ -76,7 +78,7 @@ class TConditional extends TControl
{
$result=$this->getTemplateControl()->evaluateExpression($this->_condition);
}
- catch(Exception $e)
+ catch(\Exception $e)
{
throw new TInvalidDataValueException('conditional_condition_invalid',$this->_condition,$e->getMessage());
}