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