On Fri, 26 Feb 2010, James PIC wrote: > On Fri, Feb 26, 2010 at 4:38 PM, Thomas Nunninger <tho...@nunninger.info> > wrote:
> > If the value of the header is an array, the second entry is the status code. > > Otherwise, everything behaves like before. > > > > The code seems to be a little bit hackish (because of the semantic in a > > simple > > array struct). But I don't have another idea without breaking BC. > > > > What do you think? > > Wouldn't it be nice to add an $httpCode attribute to ezcMvcResponse > and use it in ezcMvcHttpResponseWriter? Doesn't that break the loose coupling here? The status codes only make sense for HTTP. The *proper* way of doing this would to add a new class like ezcMvcExternalRedirect implementing ezcMvcResultStatusObject. regards, Derick -- http://derickrethans.nl | http://xdebug.org twitter: @derickr -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components