Created
January 4, 2013 14:19
-
-
Save anonymous/4452884 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// uncomment the following to define a path alias | |
// Yii::setPathOfAlias('local','path/to/local-folder'); | |
// This is the main Web application configuration. Any writable | |
// CWebApplication properties can be configured here. | |
return array( | |
'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.components.*', | |
'application.modules.user.*', | |
'application.modules.user.models.*', | |
'application.modules.user.components.*', | |
), | |
// 'cache'=>array( 'class'=>'system.caching.CDummyCache', ), | |
'modules'=>array( | |
'user' => array( | |
//'class'=>'application.modules.user.UserModule', | |
'debug' => true, | |
), | |
// uncomment the following to enable the Gii tool | |
'gii'=>array( | |
'class'=>'system.gii.GiiModule', | |
'password'=>false, | |
// If removed, Gii defaults to localhost only. Edit carefully to taste. | |
'ipFilters'=>array('172.23.1.103','127.0.0.1','::1'), | |
), | |
), | |
// application components | |
'components'=>array( | |
/* | |
'user'=>array( | |
// enable cookie-based authentication | |
'allowAutoLogin'=>true, | |
), | |
*/ | |
'user'=>array( | |
'class' => 'application.modules.user.components.YumWebUser', | |
'allowAutoLogin'=>true, | |
'loginUrl' => array('//user/user/login'), | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment