I placed it inside my app's protected/shell directory.
when I ran "yiic shell rbac" it's giving me this,

btw, am using the 1.1.4 yii version, not the one from the book,
so how will i run this console script ?
Posted 15 November 2010 - 12:27 AM

Posted 15 November 2010 - 12:37 AM
Posted 15 November 2010 - 12:43 AM
Posted 15 November 2010 - 03:33 AM
C:\> cd C:\xampp\htdocs\yii\trackstar C:\xampp\htdocs\yii\trackstar> C:\xampp\htdocs\yii\yii\framework\yiic shell >> help >> rbac
Posted 15 November 2010 - 03:38 AM
Nitish Bezzala, on 15 November 2010 - 03:33 AM, said:
C:\> cd C:\xampp\htdocs\yii\trackstar C:\xampp\htdocs\yii\trackstar> C:\xampp\htdocs\yii\yii\framework\yiic shell >> help >> rbac
Posted 15 November 2010 - 05:23 AM
Posted 15 November 2010 - 09:25 AM
Mike, on 15 November 2010 - 05:23 AM, said:
<?php
// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Console Application',
'preload'=>array('log'),
'components'=>array(
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
),
),
),
);
Posted 15 November 2010 - 09:34 AM
Posted 15 November 2010 - 09:38 AM
jefftulsa, on 15 November 2010 - 09:34 AM, said:
Posted 15 November 2010 - 09:47 AM
Posted 15 November 2010 - 09:50 AM
Mike, on 15 November 2010 - 09:47 AM, said:
<?php
// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Console Application',
'preload'=>array('log'),
'authManager'=>array(
'class' => 'CDbAuthManager',
'connectionID' => 'db',
),
'components'=>array(
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
),
),
),
);
Posted 15 November 2010 - 09:54 AM
Posted 15 November 2010 - 10:01 AM
Mike, on 15 November 2010 - 09:54 AM, said:
<?php
// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Console Application',
'preload'=>array('log'),
'components'=>array(
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
),
),
'authManager'=>array(
'class' => 'CDbAuthManager',
'connectionID' => 'db',
),
),
);

'connectionString' => 'mysql:host=localhost;dbname=yiiapp1',
Posted 15 November 2010 - 10:34 AM
<?php
// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Console Application',
'preload'=>array('log'),
'components'=>array(
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
),
),
'db' => array(
'class' => 'CDbConnection',
'connectionString' => 'mysql:host=localhost;dbname=mydbname',
'username' => 'username',
'password' => 'password',
'charset' => 'utf8',
),
'authManager'=>array(
'class' => 'CDbAuthManager',
'connectionID' => 'db',
),
),
);
Posted 17 January 2011 - 12:18 PM
Posted 30 January 2011 - 06:46 AM
danieln, on 17 January 2011 - 12:18 PM, said:
Posted 14 November 2012 - 11:37 PM