2008年10月22日星期三

Re: [fw-mvc] Knowing if an action is being called by the actionstack or _forward

You could check the request uri. Might be a better way though...

Tim Nagel wrote:
> Hello,
>
> I have been building an application that I'm working on by using the
> action stack and the controller action _forward function so that i can
> reuse actions whereever they are required. My question is, is it
> possible to determine if an action is called by the forwarder or
> action stack rather than directly by a page request?
>
> I have some actions that will change depending on the circumstance and
> at the moment I pass a param when i call another action, but it just
> feels messy.
>
>
> Regards,
> Tim

--

Kevin McArthur

StormTide Digital Studios Inc.
Author of the recently published book, "Pro PHP"
http://www.stormtide.ca

没有评论: