I was trying to figure out from what page a came from to render a
diferent view uppon the decision.

Example (in pseudo code)

if(came_from_view_A)
{
    render_view_B;
}
else
{
    render_view_C
}

I've solved the problem with Controller::referer() :)

On 6 Jul, 02:14, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Sat, Jul 5, 2008 at 7:48 PM, [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote:
>
> > Hi again.
>
> > Is there anyway to detect from what view a controller action was
> > called?
>
> Controllers are not called from views, it's the other way around.
>
> What are you trying to accomplish that you need to know this information?
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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