I wrote a small framework, but I am studying others. They are big, so I'm still trying to grasp their design.
When a user calls the controller or router, is call_user_func_array
the typical way the page is "handed off" to the renderer?
I tend to see this type of thing which is what I did in mine. It looks like this is what it does in Codeigniter, but I am not sure.
if ((int)method_exists($controller, $action)) {
call_user_func_array(array($dispatch,$action),$queryString);
} else {
/* Error Generation Code Here */
}
I saw this in CodeIgniter:
// Execute the callback using the values in matches as its parameters.
$val = call_user_func_array($val, $matches);