Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- support for __call on controllers, thx sunbox

  • Loading branch information...
commit ba40cd69060119b340ac771962086d724f97b3f1 1 parent 74a148a
Harald Kirschner authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Tyke.php
4 Tyke.php
View
@@ -229,7 +229,9 @@ public function execute($function, array $params = array())
if (empty($function[1])) $function[1] = 'index';
- if (!method_exists($function[0], $function[1])) throw new Exception('Method "'.$function[1].'" Not Found');
+ if (!method_exists($function[0], $function[1]) && !method_exists($function[0], '__call')) {
+ throw new Exception('Method "'.$function[1].'" Not Found');
+ }
}
ob_start();
Please sign in to comment.
Something went wrong with that request. Please try again.