We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2572aaa + 1121d24 commit 252b43fCopy full SHA for 252b43f
application/core/Application.php
@@ -37,8 +37,8 @@ public function __construct()
37
require Config::get('PATH_CONTROLLER') . $this->controller_name . '.php';
38
$this->controller = new $this->controller_name();
39
40
- // check for method: does such a method exist in the controller ?
41
- if (method_exists($this->controller, $this->action_name)) {
+ // check are controller and method existing and callable?
+ if (is_callable(array($this->controller, $this->action_name))) {
42
if (!empty($this->parameters)) {
43
// call the method and pass arguments to it
44
call_user_func_array(array($this->controller, $this->action_name), $this->parameters);
0 commit comments