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