I am developing a demo project using YII to learn it.
My doubt is on accessRules() function.
In my project to check the user access(For registered users), I am keeping a value in a session on user login and i'm checking the user access using 'expression' context parameter in accessRules.
Something like:
array('allow',
'actions'=>array('create','edit','delete'),
'expression' => '$this->isUser()' //isUser() returns bool value by checking session.
),
For this same functionality i like to use 'users' context parameter. But i am unable to understand how '@' is referring Authenticated Users.
Please let me know
- How '@' is functioning in accessRules?.
- Can we change '@' to other Special characters or to unique string?.