Skip to content

Instantly share code, notes, and snippets.

Created January 4, 2013 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4452884 to your computer and use it in GitHub Desktop.
Save anonymous/4452884 to your computer and use it in GitHub Desktop.
<?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