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
没有评论:
发表评论