see
http://manual.cakephp.org/chapter/controllers  (about a third of the
way down look for render)

see
http://api.cakephp.org/class_controller.html#90046e6b62c91452a987c9573372c2ac


On 3/10/07, Toby Parent <[EMAIL PROTECTED]> wrote:
>
> 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.
> >
> >
> > >
> >
> >
>
>
> >
>


-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

--~--~---------~--~----~------------~-------~--~----~
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