On Jan 10, 2008 5:04 PM, Novice Programmer <[EMAIL PROTECTED]> wrote:
> Hello Chris,
>
> I think i should clear the problem further... I am having a home page which
> has five tabs. Every tab will shoot a different query to database to load
> the images. Now my client wants that the tab which comes when the page loads
> should be random. So lets say that the tabs are featured, popular and
> recent.. I dont know which one would load when the page is loading. So i
> can't define a hard coded controller in the routes to route my request to.
>
> I hope it clears my problem.
>
> Thanks.

Geez, good luck with that. :)

You are thinking about this wrong though.  You can do this with a one
controller, and code inside that controller determines what tabs get
pulled up, then you pass that info to the view and treat all those
tabs as elements.

I think.

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to