Hi, I have an error while installing this. It returned an error [color="#FF0000"]‘Property “CWebUser.user” is not defined.’[/color] Could u please help me? Thanks in advance.
Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
return array(
'theme'=>'bootstrap', // requires you to copy the theme under your themes directory
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'Course & Timetabling System',
// preloading 'log' component
'preload'=>array('log',
'bootstrap',
),
// autoloading model and component classes
'import'=>array(
'application.extensions.KEmail.KEmail',
'application.helpers.*',
'application.models.*',
'application.components.*',
),
'modules'=>array(
// uncomment the following to enable the Gii tool
'userGroups'=>array(
// accessCode can be changed
'accessCode'=>'123456',
// salt can be changed
'salt'=>'123456',
),
'auth' => array(
'strictMode' => true, // when enabled authorization items cannot be assigned children of the same type.
'userClass' => 'User', // the name of the user model class.
'userIdColumn' => 'id', // the name of the user id column.
'userNameColumn' => 'name', // the name of the user name column.
'defaultLayout' => 'application.views.layouts.main', // the layout used by the module.
'viewDir' => null, // the path to view files to use with this module.
),
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'abc',
'generatorPaths'=>array(
'ext.giiplus',
),
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
),
// application components
'components'=>array(
'bootstrap' => array(
'class' => 'ext.bootstrap.components.Bootstrap',
),
'user'=>array(
// enable cookie-based authentication
//'allowAutoLogin'=>true,
//'class'=>'userGroups.components.WebUserGroups',
'user' => array(
'class' => 'auth.components.AuthWebUser',
'admins' => array('admin', 'foo', 'bar'), // users with full access
),
),
'email'=>array(
'class'=>'application.extensions.KEmail.KEmail',
'host_name'=>'smtp.gmail.com',
'user'=>'yapsiongyee@gmail.com',
'password'=>'siong310890',
'host_port'=>465,
'ssl'=>'true',
),
'image'=>array(
'class'=>'application.extensions.image.CImageComponent',
// GD or ImageMagick
'driver'=>'GD',
// ImageMagick setup path
'params'=>array('directory'=>'/opt/local/bin'),
),
// uncomment the following to enable URLs in path-format
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
// 'showScriptName'=>false,
),
'authManager' => array(
'class'=>'auth.components.CachedDbAuthManager',
'cachingDuration'=>3600,
),
'behaviors' => array(
'auth' => array(
'class' => 'auth.components.AuthBehavior',
),
),
/*
'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
*/
// uncomment the following to use a MySQL database
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=testdb',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
),
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
// uncomment the following to show log messages on web pages
/*
array(
'class'=>'CWebLogRoute',
),
*/
),
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'yapsiongyee@yahoo.com',
),
);