& Lt ;? PhpuncommentthefollowingtodefineapathaliasYii: setPathOfAlias (& amp; 39; local & amp; 39;, & amp; 39; pathtolocal-folder & amp; 39;); Th
Dirname (_ FILE _). DIRECTORY_SEPARATOR. '...', // The absolute physical path 'name' => 'GE Yii Test Study of the current application root directory! ', // Name of the current application // preloading 'log' component 'preload' => array ('log'), // and load log (record) components, will be created in any case // autoloading model and component classes 'import' => array ('application. models. * ', // load all model classes in the application/models/folder 'application. components. * ', // load all application component classes in the application/components/folder), 'defaultcontroller' => 'Site ', // set the default controller class 'modules' => array (// uncomment the following to enable the Gii tool/* 'gii' => arra Y ('class' => 'system. gii. giiModule ', 'password' => 'Enter Your password Here', // If removed, Gii defaults to localhost only. edit carefully to taste. 'ipfilters '=> array ('123. 0.0.1 ',': 1'),), */), // application components // Configure the current application component. For more components available for configuration, see "core application components" 'components' => array ('user' => array (// user component configuration, user is the component ID // enable cookie-based authentication (cookie-based authentication is supported) 'allowautologin' => true ,), 'cache' => array (// cache component 'class' => 'cmcache ', // cache component class 'servers' => array (// MemCache Cache server configuration array ('host' => 'server1', 'port' => 11211, & apos; weight & apos; = & apos; 60), // cache server 1 array ('host' = & apos; server2', 'port' = & apos; 11211, & apos; weight & apos; = & apos; 40 ), // cache server 2),), // uncomment the foll Owing to enable URLs in path-format/* 'urlmanager' => array (// URL routing manager 'urlformat' => 'path', // Two formats are supported: 'Path' format (for example:/path/to/EntryScript. php/name1/value1/name2/value2 ...) and 'get' format (// such as:/path/to/EntryScript. php? Name1 = value1 & name2 = value2 ...). When using the 'path' format, you must set the following rules: 'rules' => array ('
/
'=>'
/View ','
//
'=>'
/','
/'=>'
/',),), */'DB' => array ('ononstring' => 'sqlite :'. dirname (_ FILE __). '/.. /data/testdrive. db',), // uncomment the following to use a MySQL database/* 'DB' => array ('ononstring' => 'MySQL: host = localhost; dbname = testdrive ', 'defaulatepart' => true, 'username' => 'root', 'password' => '', 'charset' => 'utf8 ', 'tableprefix => 'tbl _',), */'errorhandler' => array (// use 'site/error' action to display errors // The error 'erroraction' => 'site/ error ',), 'log' => array (// class for processing record information 'class' => 'clogrouter ', 'Routes '=> array ('class' => 'cfilelogroute', // class for processing error information 'levels' => 'Error, warning ', // error level), // uncomment the following to show log messages on web pages/* array ('class' => 'weblogroute ', // display the error message on the webpage ),*/),),), // application component configuration ends // application-level parameters that can be accessed // using Yii: app ()-> params ['paramname'] // use Yii :: app () -> params ['parameter name'] can access the application layer parameter 'params' => array (// this is used in contact page 'adminemail '=> 'webmaster @ example.com ', ),);