Wednesday, August 26, 2009

Re: Site's home page

On Wed, Aug 26, 2009 at 11:32 AM, Matias_castro<mattias.castro@gmail.com> wrote:
>
> Yes, I believe that should work.
>
> I have one more dought; shouldn't I use the APP/views/pages/home.ctp
> to build up my home page?

Yes, that's what I said.

> instead of treating the home like any other
> view? and if this is so, how do I controle THAT home? I mean, if I
> want it to display contents of a database/table corresponding to
> another model (for instance news) where should I do it? I'm pretty
> sure it should be a controller... maybe appcontroller?

You can invoke elements inside the view. Have a look at requestAction,
for instance.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: