2009年4月30日星期四

Re: [fw-mvc] Action ContextSwitch

But how do I know formats needed in advance? Contexts set in controller::init.

And what about exclusiveness?

> Try setting the request's format parameter in your controller's
> preDispatch() hook:
> $this->_request->setParam('format', 'xml');
>
>>
>> Please, help to get idea of contexts.
>> There are questons I cannot find answers by now.
>> Is there a way to hint context (xml, for example) without explicitly
>> putting format var into request?
>> How to set exclusive context for an action (the way that all requests
>> to that particular action will be processed only in context specified,
>> without any hints)?
>>

没有评论: