On 6/29/07, Sonic Baker <[EMAIL PROTECTED]> wrote:
> Just wondering how you would plan to control the visibility of the extra
> admin links?
> Keeping in mind that best practice is to minimise logic in the views, would
> you pass the links in through the controller, render a different menu
> element, or some other way?
>

I would put the links to it inside an element and conditionally render
that element.  There's no other way to really do it, and it's okay to
put logic in the views when there isn't any other way to do it.
Remember, you should follow "standard practices" but use some
pragmatism when needed.

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  "Just build it, damnit!"

@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to