2009年4月30日星期四

Re: [fw-mvc] Action ContextSwitch

Try setting the request's format parameter in your controller's preDispatch() hook:

$this->_request->setParam('format', 'xml');

-Hector


On Wed, Apr 29, 2009 at 11:48 PM, K.L. <coviex@gmail.com> wrote:
Hi!

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)?

Regards,
Kostya


没有评论: