ignore the: /* uses no models */
comment. should change that. On 01/09/06, Mikee Freedom <[EMAIL PROTECTED]> wrote: > hey branden, > > This might help you. > > I'm doing a similar thing with my admin area so I have a simple > admincontroller that grabs info from a few different models and > dosen't require a specific admin model at all. > > Looks something like this: > > class AdminController extends AppController > { > > /* CakePHP attributes */ > > /* Name of this controller */ > var $name = 'Admin'; > > /* uses no models */ > var $uses = array( > > 'Image', > 'ImageVersion', > 'Group', > 'User' > > ); > > Note the $uses array. Here I'm pulling in the models I might need to > use but if and Admin model is not included it doesn't look for one. > > For your purposes you could do a similar thing and use whatever models you > like. > > Hope this helps, > Freedom > > On 01/09/06, dmancan <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > I'm currently testing cakePHP to decide if our company should switch > > over. I have a quick question which I'm sure is a snap for you gurus to > > answer. > > > > I want my homepage to draw a collection of requests from various > > database tables....each dataset will populate various elements on the > > homepage. The homepage has no db table. > > > > If I use the pagecontroller I only get static content from the static > > home.thtml template. If I create a new controller and set the routing > > to use a new controller and view, I have to create a model and database > > table, but I don't need a homepage table. > > > > I'm definately missing something here.. > > > > How do I get data to the homepage without having a model and matching > > table? > > > > Thanks. > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---