This goes back to the convention of Fat Models and Skinny Controllers. Create an action in each of your models which are going to display data on your Dashboard page and call them from whichever controller you are using to ultimately display the dashboard (can be a dashboard controller without a table if needs be, or an action in your pages controller I suppose).
You can be clever with your existing model associations to reach other models, by doing deep calls: $this->Model1->Model2->Model3->dashboard(); But if you want access to unassocicated models you can use Controller::loadModel() or ClassRegistry->init() to get at them. Related post: http://milesj.me/blog/read/16/loading-models-specific-to-certain-actions HTH, Paul. On Jul 8, 7:55 am, elogic <[email protected]> wrote: > Hi All, > > How do I go about calling data from models within my system onto the > standard pages? I have built an intranet with models such as accounts, > users, groups, properties and now I want to create a dashboard / > homepage (it is /pages/dashboard). I have the blank page but I want to > call stuff from those other models on to this page. > > How do I do this? > > Thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
