If you need "global variable", use Configure class designed specially for this.
http://book.cakephp.org/view/43/Configure-Methods On Jul 20, 3:45 pm, xiaopang <yve...@gmail.com> wrote: > Hello: > > I am a newby to Cakephp, > > I have some simple data which I don't want to store in database but I > want them to be application wide accessible. for view, controller as > well as model. > > For example: I have a array $admin_type, which define 2 types of > system administer, > > $admin_type = array (1 => 'King', > 2 => 'Admin'); > > Then, where should I define this variable? I tried to define in > bootstrap file, but it doesn't work > > Thanks in advance Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en