E
E
EVOSandru62014-12-18 11:07:21
Yii
EVOSandru6, 2014-12-18 11:07:21

How can Yii do the opposite of Yii::app()->user->checkAccess('3')?

Followed the recipe yiiframework.ru/doc/cookbook/ru/access.rbac.file . Only changed the array keys in auth.php to integer indexes, but this one:

if(Yii::app()->user->checkAccess('3')){
    echo "hello, I'm administrator";
}

Does not exceed . I would like to see what lies in this accessory, please help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zelenin, 2014-12-18
@zelenin

Only changed array keys in auth.php ha integer indexes

what for?
look

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question