Barta Tamás
Barta Tamás

Reputation: 899

Yii framework: AuthManager

I am following this litle guide, how to set up an RBAC. This guide I got stuck at this point :

$ cp auth.txt auth.php

whats the point of doing this? Why i cant just make a php file and put my code in there. This is just making the same file with the .php ext.

So i did everything in this guide. Now i have the following error: Unknown authorization item "reader". I get this when i try to log in. Any idea? Got stuck for a few hours now.

Upvotes: 0

Views: 956

Answers (1)

Barta Tamás
Barta Tamás

Reputation: 899

Fixed it. auth.php file must be in the data folder. And should have <?php ?> tags.

Upvotes: 1

Related Questions