I'm getting stuck into this framework now and finding it very useful and a pleasure to use.
I have a question though regarding rerouting from a controller. I found that redirection was causing logs not to be written at the end of a redirected request (Note: log writing is done after run() within index.php). I eventually found the culprit in DooWebApp where the method throwHeader has an exit; after internal redirection.
To work around this i replaced
- Code: Select all
exit;
- Code: Select all
if ((!isset($code[2])) || ($code[2])) exit; //CHANGED Optimisation.
Estentially this allows me to send an additional parameter in the array from the controller to specify whether to prematurely exit or not.
Is this ok? Is there something i've missed?
Thanks
James
