2008年10月22日星期三

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

This would be nice functionality to have if it's not already in there. I've looked for this too and couldn't find it, and ended doing what you did (adding params).

Would it help if _forward, the action stack, and the action view helper automatically added a param to the request?

On Wed, Oct 22, 2008 at 3:33 PM, Kevin McArthur <kevin@stormtide.ca> wrote:
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




--
-Hector

没有评论: