it's useful to highlight current menu in a navbar for instance I use it to select the correct ad banner for a page (different banner by theme)
On 14 mar, 17:11, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 3/14/07, dizz <[EMAIL PROTECTED]> wrote: > > > > > Is there a Cake method or variable to get the current controller and > > action? > > > Thanks in advance. > > This is a question I see a lot, and wonder why so many people need to > know this information? I've used other frameworks and have never run > into a situation in my application where I needed to know what > controller or action I was currently using. > > Are there certain problems that are only solvable if you know this info? > > -- > Chris Hartjes > > My motto for 2007: "Just build it, damnit!" > > rallyhat.com - digital photo scavenger hunt > @TheBallpark -http://www.littlehart.net/attheballpark > @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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---
