Kore Nordmann a écrit :
On Mon, 2008-06-23 at 14:41 +0200, James Pic wrote:
Derick Rethans wrote:
On Fri, 20 Jun 2008, James Pic wrote:
Kore Nordmann wrote:
- (HTTP) redirects are also "just" some view structure, which is returned by
  the controller, and the view actually performs the proper action depending
on the context.
Do we want the controller to set HTTP headers in the output object? I'd say that the view-manager should take care of figuring the response code by itself.
Yes, I think this should be up to the view/view manager.
How do we want that standartized for the output object?
Here is a short list of proposals:
- $output->status: status identifier, like OK, FAIL, REDIRECT ...
- $output->redirect: the redirect object, with variables that should be sent and
  the controllr name
- you-name-it

Imho: No standard. Each view router (or how we called it) may be
implemented in a way it makes sense for the respective application
Mmh, okay, but this could be a standard at least in one of the "demo" view controllers that are provided with the lib. Makes life easier for the user - even though I agree it is quite hard to get it right in such a way that it will satisfy all possible use cases.
-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to