if you wanna use data from different models,you just add
$uses = array('model 1','model 2');
in you controller.and then you can use any of models like "$this->model2->findAll()" "Tazz 写道: " > Please confirm if this is the right thing to do... > > On my front page I want to show data from various models! Obviously, > the default home page created by the bake.php script is just a static > page... > > I was thinking the folliwng... > > > Create a control called home, that controller will fill in the data > using the various models using the set() method within it's index > method, I will the create a view called home that view will pretty much > display the data I want. > > Then I can pretty much configure the rootes to point to a different > home page right? > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
