Don't see why not - in your controller have an if/else like:

 if ($data['Foo']['bar'] == 'a')
{
     $this->render('foobar_a');
} else {
    $this->render('foobar_nota');
}

Should work...

 -Toby

FredsFriend wrote:
> Hey
> I'm wondering if it is possible to change the view that is used in the
> controller according to say, the results from a model.
> It would cut down on a load of if else statements in my current view.
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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