Wednesday, August 26, 2009

Re: Site's home page

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? 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?

Thanks a lot!

On 26 ago, 10:43, Bidibule <bblamp...@tagexpert.be> wrote:
> Hi Matias,
>
> You don't need a database for your model
>
> You can use the $useTable = false; to disable the use of database in
> your model/controller
>
> You can make a 'Page' controller and a 'home' action/view to display
> your home page
> Then you can use Routes to set your index page is pages/home
>
> I don't know if that answered your question
>
> On 26 août, 09:33, 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: