Wednesday, January 5, 2011

Re: Default Page

Hi, thanks.

But where is the controller ?
Because I want to pick a random article from my model and show it
using the "home.ctp" template.

Best regards

On 23 dic 2010, 02:38, Amit Badkas <amit.sanis...@gmail.com> wrote:
> Hi,
>
> By default CakePHP renders app/views/pages/home.ctp view for '/' URL, though
> you can change this by making changes in app/config/routes.php
>
> Hope this helps.
>
> Amit Badkas
>
> PHP Applications for E-Biz:http://www.sanisoft.com
>
>
>
>
>
>
>
> On Wed, Dec 22, 2010 at 7:53 PM, Nicolas400 <nico.mach...@gmail.com> wrote:
> > Hyi I'm quite new to cake and I wonder how can I do this
> > I want a welcome or index page that shows me a lot of info.
> > I don't want toenter directly to a "List of ..." page.
>
> > Thinking in how Cake work I think that I need a sort of "default"
> > controller that shows me a particular view.
> > But in this default controler I want to "use" models" of my database
> > (system) , to show for example a random article or something like
> > that.
>
> > Any Idea how to do that ?
>
> > Best regards
>
> > PS: It will be great if the Cake Blog demo had this issue as a last
> > lesson.
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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<cake-php%2Bunsubscribe@googlegroups.c om>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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: