and set them into the page.
public function index() {
$this->set('users', $this->User->find('all'));
$this->set('files', $this->File->find('all'));
$this->set('posts', $this->Post->find('all'));
}
On Mar 1, 9:35 am, 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.
--
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:
Post a Comment