Tuesday, March 1, 2011

Re: Multiple "controllers" on a single page

On Mar 1, 12:35 pm, cricket <zijn.digi...@gmail.com> wrote:
> On Mon, Feb 28, 2011 at 10:34 PM, mlaw <matt.crink...@gmail.com> wrote:
> > Just wondering what the Cake PHP approach would be if one were
> > creating a single page that presented: a user list, recent posting
> > list and recent file upload list.  Right now I have separate
> > controllers for each so I can view each item on its own page.  How
> > would I use Cake PHP to present all of this data on one page?  Would
> > one make a master controller that makes use of the other three or
> > break the controllers into components?  And how could / can the views
> > for each item be re-used in such a situation?
>
> There are several approaches.What's best depends on your situation. Is
> this an admin page? For regular users? Google "cakephp dashboard" for
> ideas.

Thanks. I googled what you suggested and
http://nuts-and-bolts-of-cakephp.com/2008/12/16/how-to-build-a-dashboard-for-your-application-in-cakephp/
seems to be enough to get me off the ground.

The page is for an individual user so they would only get information
relevant to them for each section.

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: