Thanks. That helps a little. From what I've been reading it's better
to use Elements for HTML chunks and Helpers for logic. But
requestAction seems like a good option too.

On Oct 14, 10:54 am, Céryl <[email protected]> wrote:
> I don't really know the answer, but just to add to that, the home.ctp
> has a controller, it's the pages_controller.
> And also, you can of course use actions from other controllers and
> models in the pages-views by using Cake's requestAction. I use it
> sometimes to get for instance  number of posts, users, pictures or
> whatever on the sites main index page.
>
> On 14 okt, 16:38, "[email protected]" <[email protected]>
> wrote:
>
> > On the index of my website I get content from several different tables
> > in the database. Which is best to use? Elements? Behaviors? or
> > Helpers? As far as I understand the index(home.ctp) page doesn't have
> > a  model or controller.
--~--~---------~--~----~------------~-------~--~----~
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