Yii Framework Forum: Error Install Rights (CWebApplication.db" is read only) - Yii Framework Forum

Jump to content

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

Error Install Rights (CWebApplication.db" is read only) Rate Topic: -----

#1 User is offline   wongsemin 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 12-February 17

Posted 13 February 2017 - 03:42 AM

Para master, saya mau install rights tapi muncul error di webnya seperti ini:

Property "CWebApplication.db" is read only

Cose di main.php sbb:

...
'import'=>array(
'application.models.*',
'application.components.*',
'application.modules.rights.*',
'application.modules.rights.components.*',
),

'modules'=>array(
'rights'=>array(
//'superuserName'=>'Admin',
//'userIdColumn'=>'id', // mengeset nama colom yang menjadi id user
//'userNameColumn'=>'username', mengeset nama colom yang menjadi username user
'install'=>true, // jika anda ingin menginstall, jika sudah terinstal dihilangkan saja baris ini
),
),

'modules'=>array(
// uncomment the following to enable the Gii tool
///*
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'admin',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
//*/
),

// application components
'components'=>array(

'user'=>array(
'class'=>'RWebUser',
// enable cookie-based authentication
'allowAutoLogin'=>true,

),
'authManager'=>array(
'class'=>'RDbAuthManager',
'connectionID'=>'db',
'defaultRoles'=>array('Authenticated','Guest'),
),
),

mohon bantuannya... makasih banyak...
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