On Dec 12, 2010, at 13:20, cricket wrote:

> Whenever I've wanted to render a different view, I've done:
> 
> $this->viewPath = 'some/path/from/views/dir';
> $this->render('view_name');
> 
> So, I think you'd need to put your test inside beforeRender().

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?



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