I think you should be able set it in the AppController, something like:
class AppController {
function beforeFilter() {
$this->set('roles', array('', 'Administrator', 'Supervisor',
'Moderator', 'Testing Team', ''));
}
}
What are you trying to achieve? Maybe that would give us more ideas.
Cheers,
--
Matias Lespiau
http://www.gignus.com/
On Jan 29, 2008 3:42 PM, Siebren Bakker <[EMAIL PROTECTED]> wrote:
> I have an array of Strings, that I use in a couple of different places
> throughout my cake-app, in a couple different models, and was wondering if
> there was any way to declare the array such that it would be accessible from
> within any view, instead of having to declare the array for each view that
> uses it?
>
> i.e., the array('', 'Administrator', 'Supervisor', 'Moderator', 'Testing
> Team', '');
>
>
> --
> In the name of Life, Liberty, and the pursuit of my sanity.
> Siebren Bakker(Aevum Decessus)
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GCS d- s+: a19 C++++ UL++ P L++
> !E W++ N(-) o? K? w(+) O? M-- V?
> PS+ PE Y- PGP- t+ 5? X- R tv--
> b++ Di D+ G+ e h! r y-
> ------END GEEK CODE BLOCK------
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---