Hi all,
Till now I have understood is
to connect to database and retrieve roles,operations and tasks from database we need
setting in protected/config/main.php
'authManager'=>array(
'class'=>'CDbAuthManager',
'connectionID'=>'db',
),
after that i have to create 3 tables according to framework/web/auth/schema.sql
But what I didn’t get is ,the purpose of following coloumns. Can anyone please explain in some more detail? Why they are required. And some sample data in it. Like how to write bizrule?
Columns are :
authassignment.bizrule
authassignment.data
authitem.type
authitem.bizrule
authitem.data
What kind of data goes in those fields. I tried putting “return Yii::app()->user->id===$params[‘post’]->authId;”
inside bizrule but it doesn’t work.
Also, in authitemchild table can we make parent->child relationship between role->operation ?? like author->updateOwnPost