Yii Framework Forum: Convert Cphpauthmanager To Cdbauthmanager - Yii Framework Forum

Jump to content

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

Convert Cphpauthmanager To Cdbauthmanager Rate Topic: -----

#1 User is offline   dancocos 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 28-November 12

Posted 28 November 2012 - 10:52 AM

Hello,

I've taken over a project from another development team and the initial team used CPhpAuthManager. This works well but the project I'm working on involves many users signing up for the site and this puts auth.php in a constant state of flux, which doesn't work well with the process in place for svn deployment.

So I have two questions
1) The easy way out is to ask how others have managed the auth.php file with regards to deployment between dev, qa and prod environments
or
2) Is there a path for changing from CPhpAuthManager to CDbAuthManager? Since the site hasn't launched yet I do have the flexibility of not needing to worry about a conversion per se but if that exists it would be nice.

Thank you,
Dan
0

#2 User is offline   robregonm 

  • Expert Yii Developer
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 598
  • Joined: 30-July 09
  • Location:Colombia

Posted 28 November 2012 - 03:58 PM

Are you using some RBAC Manager? or RBAC purely?
Whatever the answer is, I think a "yii-migration" is needed or a command for that purpose where you iterate each authItem and authAssignment and you move it . I'm not sure that "quick way" or workaround exists.


Ricardo Obregón

YiiFramework en Español - http://yiiframework.co/ - http://yiiframeworkenespanol.org/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx 1.7, MySQL(MariaDB & PerconaDB), PostgreSQL 9, Yii 2, CanJS
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#3 User is offline   dancocos 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 28-November 12

Posted 04 January 2013 - 11:22 AM

View Postrobregonm, on 28 November 2012 - 03:58 PM, said:

Are you using some RBAC Manager? or RBAC purely?
Whatever the answer is, I think a "yii-migration" is needed or a command for that purpose where you iterate each authItem and authAssignment and you move it . I'm not sure that "quick way" or workaround exists.


I believe just RBAC purely.
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