Yii Framework Forum: Cdbauthmanager Api Method - Page 167 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cdbauthmanager Api Method - Page 167

#1 User is offline   yii_help 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 12-December 12

Posted 09 January 2013 - 04:41 PM

I have been reading this book and is beneficial.
Some of the things I have not yet grasped , but may be because I am a newbie and no fault of the author :-)


On Page 167 , there is a line :
$role->addChild('createProject');

Is "addChild" a typo or am I missing something? . Because CDbAuthManager details page (http://www.yiiframew...temChild-detail) does not lists this method.


Thanks!
0

#2 User is offline   jefftulsa 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 168
  • Joined: 06-October 08
  • Location:Austin, TX

Posted 10 January 2013 - 10:19 AM

View Postyii_help, on 09 January 2013 - 04:41 PM, said:

I have been reading this book and is beneficial.
Some of the things I have not yet grasped , but may be because I am a newbie and no fault of the author :-)


On Page 167 , there is a line :
$role->addChild('createProject');

Is "addChild" a typo or am I missing something? . Because CDbAuthManager details page (http://www.yiiframew...temChild-detail) does not lists this method.


Thanks!


$role
is a reference to an instance of the authorization item, not the manager:

http://www.yiiframew...addChild-detail



0

#3 User is offline   yii_help 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 12-December 12

Posted 14 January 2013 - 10:38 PM

View Postjefftulsa, on 10 January 2013 - 10:19 AM, said:

$role
is a reference to an instance of the authorization item, not the manager:

http://www.yiiframew...addChild-detail


Thanks for the clarification, it helped.Still learning... :-)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users