Re: lurking for controler

2006-04-07 Thread AD7six
Hi gobblez, I've updated the wiki after testing the code - sorry for syntax errors, I don't usually publish code without testing, but at 1 in the morning I decided that my quick effort to address this point should wait for another day. _getControllerName is now defined. "$something = depth==1?'

Re: lurking for controler

2006-04-07 Thread gobblez
I saw your wiki post. I get an error from the helper on line 41, ' ; ' unexpected semicolon. Not sure why, I just copy and pasted. Also i see you use this function, _getControllerName($Menu[0]). but I can't see you defining it anywhere, and didn't find it anywhere in the cakephp.org/search as a

Re: lurking for controler

2006-04-06 Thread AD7six
Hi Gobblez, The dumbed down version of this is in this google thread, 2nd post. The paste, which I now see does exist, is slightly obsolete in the way it is coded - but will still work. I'm not entirely sure where you questions begin :o), so I'll start where I can answer, If I say something you

Re: lurking for controler

2006-04-06 Thread gobblez
I found it, the paste above got messed up because a ); on at the end of the link! I have a few questions... What does this mean? Can you tell me what it is doing? What is &$this? and where it says "name" below, what does that equal (and how did it get set)? You also used $beforeFilter. I co

Re: lurking for controler

2006-04-06 Thread AD7six
Hi Gobblez, I'll create a snippet for this code, I didn't realise that pastes have a lifetime until recently. However, the code above already does what you are asking for (I think), just put it in your layout or in an element and call renderElement. Cheers, AD7six Looking for CakePHP info? Fin

Re: lurking for controler

2006-04-06 Thread gobblez
Hi, the cakebin paste is gone. Can anyone help? I need the same thing, add a class="active" to the correct menu item, depending on what the current page is. Or what was last clicked. --~--~-~--~~~---~--~~ You received this message because you are subscribed to