Hi, I want a function that return me a Random Article from my Model.
I guess all I need is the Find Method, but how do I know how this
random number will match an existing ID ??
I'm really stuck.
because if I had 3 articles (1,2,3) i want to get a random Id within
those numbers, but if I have 10
Hi, I found pages_controller.php !!!
This is what I need.
Best Regards.
On 5 ene, 11:48, Nicolas400 wrote:
> 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
/' 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 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 defa