Tuesday, March 1, 2011

Re: Multiple "controllers" on a single page

On Mon, Feb 28, 2011 at 10:34 PM, mlaw <matt.crinklaw@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.

--
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: