I have my login in one place only, so this may not be useful to you.
But I just check the session for a user in my nav element. If so, the
logout link and other stuff is displayed; if not, the login link.

On Thu, Apr 24, 2008 at 1:51 PM, aranworld <[EMAIL PROTECTED]> wrote:
>
>  So, let's say I want to set a flag that determines whether or not a
>  login link should be displayed if a visitor to my site is not logged
>  in.
>
>  Which is the more cake friendly way to do this?
>
>  // put this in my AppController
>  var $displayLoginLink = TRUE;
>
>  OR
>
>  // put this in my bootstrap.php
>  Configure::write('Auth.displayLoginLink', TRUE);
>
>
>  Is there any general rule of thumb regarding when to use an
>  AppController variable and when to use a Config::write() variable?
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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