OSDN Git Service

Merge pull request #49 from malukenho/hotfix/declare-missing-property
[php-libraries/Router.git] / src / PHPRouter / Route.php
index 8b28321..e2c326d 100755 (executable)
@@ -153,6 +153,6 @@ class Route
     {
         $action = explode('::', $this->config['_controller']);
         $instance = new $action[0];
-        $instance->$action[1]();
+        call_user_func_array(array($instance, $action[1]), $this->_parameters);
     }
 }