error on array

Hello Friends

I’m making a test on my rules, I change the string by value of my function, and the index don’t load. See, this is the normal code:




array('allow', // allow admin user to perform 'admin' and 'delete' actions

				'actions'=>array('admin','delete'),

				'users'=>array('admin'),

			),



I change this part: ‘users’=>array(‘admin’), for this: ‘users’=>array($this.getADM()),

This is my class:




protected function getADM() 

{

            $x = 'adm';

            return 'admin';

}






array('allow', // allow admin user to perform 'admin' and 'delete' actions

				'actions'=>array('admin','delete'),

				'users'=>array($this.getADM()),

			),



Why the index does not load? If I don’t change the index load, but if I change don’t load

Sorry my english is not very well, I’m from Brazil

I fix the error:

$this.getAdministradores() to $this.getAdministradores()

I need to sleep rssrsrs

Just curious…What’s the difference? Or maybe I need some sleep too?

Again,I’m just curious…:)

I believe what he means is:

$this.getAdministradores() to $this->getAdministradores()