public runAction ( string $route, array $params = [] ) : integer | Response | ||
$route | string | the route that specifies the action. |
$params | array | the parameters to be passed to the action |
return | integer | Response | the result of the action. This can be either an exit code or Response object. Exit code 0 means normal, and other values mean abnormal. Exit code of `null` is treaded as `0` as well. |