DooPHP IRC channel


DooWebApp throwHeader() exit issue

This is for general DooPHP discussion. Ask your questions here.

DooWebApp throwHeader() exit issue

Postby kororas » Thu May 10, 2012 3:21 pm

Hi Everyone

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;
with
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
kororas
 
Posts: 1
Joined: Thu May 10, 2012 1:51 pm

Re: DooWebApp throwHeader() exit issue

Postby roman » Mon May 21, 2012 4:36 pm

Keep asking this periodically until Richard or Leng notice this :)
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest