Doh must have had code blindness, i swear that wasn't there when i looked over that page earlier. Thankyou both for your help. Hopefully i won't miss blatant stuff like that again
On 10 Mar, 18:20, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > seehttp://manual.cakephp.org/chapter/controllers (about a third of the > way down look for render) > > seehttp://api.cakephp.org/class_controller.html#90046e6b62c91452a987c957... > > 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 -~----------~----~----~----~------~----~------~--~---
