Hi,
am still at the trackstar , chapter 8, if such error like this occurs, where should I look for the error?
it doesn’t tell which file, just the module :S, as far as I can see, I only used the authManager thing at the RbacCommand.php file
Hi,
am still at the trackstar , chapter 8, if such error like this occurs, where should I look for the error?
it doesn’t tell which file, just the module :S, as far as I can see, I only used the authManager thing at the RbacCommand.php file
Can you confirm that your main config file: /protected/config/main.php does, indeed, have the auth manager configured as an application component (as discussed on pg 179 of the book)? Something along the lines of:
// application components
'components'=>array(
...
'db'=>array(
'connectionString' => 'mysql:host=127.0.0.1;dbname=trackstar_dev',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
),
'authManager'=>array(
'class'=>'CDbAuthManager',
'connectionID'=>'db',
),
...
ok problem solved, by the default the gii code
thanks alot