Wednesday, August 26, 2009

Re: Site's home page

OK, but, where do I put the logic of that home.ctp? for instance if I
want to display data from another model (ie. news)?

On 26 ago, 11:54, brian <bally.z...@gmail.com> wrote:
> Copy the file cake/libs/controllers/pages_controller.php to your
> controllers folder. Edit you config/routes.php file to have:
>
> Router::connect('/', array('controller' => 'pages', 'action' =>
> 'display', 'home'));
>
> Next, create a view file at views/pages/home.ctp with your home page.
>
> On Wed, Aug 26, 2009 at 3:33 AM, Matias_castro<mattias.cas...@gmail.com> wrote:
>
> > I have already studied (implemented) the blog and acl tutorials
> > getting quite familiar with the basic elements of the framework. I've
> > also learnt how to use a bit of bake.
>
> > My question came when I wanted to start my own web page. I have my
> > data model, logic, structure (all of them in design), and my home
> > page. This is where I have the problem! Where do I put this page??
> > This page should also have a controller right (i'm guessing
> > appcontroller)? but in that case, it should also have a table in my
> > database? that doesn't make any sense...
>
> > Could someone please point me in the right direction here please? I
> > would really appreciate it!
>
> > Thanks a lot!!
--~--~---------~--~----~------------~-------~--~----~
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: