2008年10月29日星期三

Re: [fw-mvc] How to disable post when i perform redirecting

-- Hector Virgen <djvirgen@gmail.com> wrote
(on Wednesday, 29 October 2008, 02:52 PM -0700):
> <OT>
>
> When using the strategy pattern for the controller's helper broker, should the
> method be capitalized or lowercase?
>
> $this->_helper->Redirector->goto(action, controller, module);
>
> vs.
>
> $this->_helper->redirector->goto(action, controller, module);
>
> Both versions work, and I've seen both versions in the online documentation.
> Which is "correct", if any? Thanks!

Both are correct, and both work. Internally, the helper broker does a
ucfirst() on it, and then uses that to do a lookup against the various
prefix paths registered.


> </OT>
>
> On Wed, Oct 29, 2008 at 2:48 PM, Goran Juric <goran.juric@nacional.hr> wrote:
>
>
>
> unknownman wrote:
> >
> > but after redirecting when i reload index action in browser , myAction
> > execute too,
> > how can i disable it in redirector
> >
>
> Use $this->_helper->Redirector->goto(action, controller, module);
> --
> View this message in context: http://www.nabble.com/
> How-to-disable-post-when-i-perform-redirecting-tp20236071p20236600.html
> Sent from the Zend MVC mailing list archive at Nabble.com.
>
>
>
>
>
> --
> -Hector

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: