Yii Framework Forum: Creating Authorization Roles - Yii Framework Forum

Jump to content

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

Creating Authorization Roles solved after lots of search and following different post Rate Topic: -----

#1 User is offline   Prashant Thakkar 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 29
  • Joined: 04-May 13
  • Location:India

Posted 06 July 2013 - 04:32 AM

Lots of newbies will face the problem with creating roles as i did... This might help all of them.

1. There are two methods of storing in DB and in File

I cracked storing in DB using console script and will explain the same.

1. modify your protected/config/console.php as
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=dbname',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' =
0

#2 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 2,083
  • Joined: 16-February 11
  • Location:Japan

Posted 06 July 2013 - 10:30 PM

/* Moved from "General Discussion for Yii 1.1.x" to "Tips, Snippets and Tutorials" */
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