On Sun, Dec 12, 2010 at 4:05 PM, Ryan Schmidt
<[email protected]> wrote:
>
> Yes, that is what I am trying to do. But in the beforeRender() method I need 
> access to the name of the view -- the string "view_name" in your example -- 
> and this string is not passed from the render() method to the beforeRender() 
> method, nor does it appear to be stored anywhere in the object prior to 
> calling beforeRender(). So how can I get the string "view_name" in the 
> beforeRender() method?

You're using PagesController so, presumably, it's all the same action.
Meaning, the same view, also (bydefault, I mean). So, I guess what
you'd need to do is check $this->params['action'] and then do whatever
other tests you need to do.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to