Thanks guys. Both seem like sensible solutions. I case the general
approach to this is to just break/bend the rules a bit.

On an unrelated note, what is the posting convention here? People seem
to top post, which would be a no-no on Usenet. I only ask as I
naturally want to bottom/inline post (keeps the natural reading order)
but don't want to mix and match with other people, jumbling everything
up.

On 20 May, 22:33, spub <[EMAIL PROTECTED]> wrote:
> In terms of adding small pieces of functionality I tend to use a
> mixture of requestActions and renderElement.
>
> For example in an ecommerce site I may use $categories = 
> $this->requestAction('/categories/index'); to retrieve the categories and
>
> display them on the index page.
>
> Same would apply for forum entries.
>
> I could use echo $this->renderElement('show_menu')  to render the menu
> in the index page or into the layout itself.
>
> On May 20, 10:19 pm, Matt Huggins <[EMAIL PROTECTED]> wrote:
>
> > I've been using CakePHP for almost 2 years now, and I still don't know
> > what the best way to do this is.  The way I do it is I end up creating
> > an added action in one of my controllers, and I change the routing for
> > the homepage to point there.  I'd really like to know of a better
> > approach to this, as I haven't found any good real-world example.
>
> > On May 20, 2:17 pm, W Marsh <[EMAIL PROTECTED]> wrote:
>
> > > Hi.
>
> > > If you look at most web sites you will see that their index pages are
> > > generally a mish-mash of different functionality. For example, they
> > > might give a summary of recent blog posts coupled with other
> > > statistics, all relating from various models in the system.
>
> > > How does this fit into the model-view-controller mentality?
> > > Controllers and models tend to be focused on one specific piece of
> > > functionality in the examples I've seen. There are no good examples of
> > > real world usage.
>
> > > I should point out this is a design/best practices question. I know
> > > HOW to make an index/general purpose page work, but I would like to
> > > hear some wisdom on how to do it in the CakePHP spirit.
>
> > > Thanks.
>
> > >   - Wayne

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to