summaryrefslogtreecommitdiff
path: root/lib/prado/framework/TComponent.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/prado/framework/TComponent.php')
-rw-r--r--lib/prado/framework/TComponent.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/prado/framework/TComponent.php b/lib/prado/framework/TComponent.php
index 127b68a..0752d04 100644
--- a/lib/prado/framework/TComponent.php
+++ b/lib/prado/framework/TComponent.php
@@ -555,7 +555,10 @@ class TComponent
return isset($args[0])?$args[0]:null;
}
- throw new TApplicationException('component_method_undefined',get_class($this),$method);
+ // don't thrown an exception for __magicMethods() or any other weird methods natively implemented by php
+ if (!method_exists($this, $method)) {
+ throw new TApplicationException('component_method_undefined',get_class($this),$method);
+ }
}