'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web Application',//项目的名称 // preloading 'log' component
'preload'=>array('log'), // autoloading model and component classes
'import'=>array(
'application.models.*',//导入application/models文件夹所哟模型类
'application.components.*',
), 'modules'=>array(
// uncomment the following to enable the Gii tool 'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'123456',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
//gii的配置 可以帮助我们快速创建控制器
),'
db'=>array(//数据库的配置
'connectionString' => 'mysql:host=localhost; dbname=testdrive',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
),