[TYPO3-core] RFC: #9281: Add a method to easily do a HTTP redirect

Steffen Kamper info at sk-typo3.de
Wed Sep 3 19:53:55 CEST 2008


Hi Ingo,

+1 on this patch! Makes things more easy!

Benjamin Mack schrieb:
> Hey Dmitry,
> 
> Dmitry Dulepov [typo3] wrote:
>> +1, good feature! Possible we could use locationHeaderUrl directly 
>> inside header(), without assigning to $url. But I do not insist, 
>> current code is fine with me!
> Yeah, I agree. Makes the thing more compact.
>

it's only a style-issue, i'm ok with both


>> One good thing that we could add is "@ob_end_clean();" before the 
>> first header(). This would cleanup any buffered output that already 
>> started because it will be useless in case of redirect.
> Yeah, we also thought of having a "header_sent()" call before that (we 
> could then even throw an exception or error), however I think this 
> handling should be left to the developers.
> 

imho not important. Dev who use that should take care of.

vg Steffen


More information about the TYPO3-team-core mailing list