Created
November 7, 2011 19:13
-
-
Save stamm/1345852 to your computer and use it in GitHub Desktop.
yii config
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
// 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' => 'FPR', | |
'sourceLanguage' => 'en_us', | |
'language' => 'ru', | |
'charset' => 'UTF-8', | |
// preloading 'log' component | |
'preload' => array('log'), | |
// autoloading model and component classes | |
'import' => array( | |
'application.models.*', | |
'application.components.*', | |
), | |
'modules' => array( | |
// uncomment the following to enable the Gii tool | |
'gii' => array( | |
'class' => 'system.gii.GiiModule', | |
'password' => '1', | |
// If removed, Gii defaults to localhost only. Edit carefully to taste. | |
'ipFilters' => array('127.0.0.1', '::1'), | |
), | |
), | |
// application components | |
'components' => array( | |
'user' => array( | |
// enable cookie-based authentication | |
'allowAutoLogin' => true, | |
'guestName' => 'Guest', | |
'loginUrl' => '/site/login', | |
'identityCookie' => null, | |
'autoRenewCookie' => false, | |
), | |
// uncomment the following to enable URLs in path-format | |
'urlManager' => array( | |
'useStrictParsing' => false, | |
'showScriptName' => false, | |
'urlFormat' => 'path', | |
"urlSuffix" => "/", | |
'rules' => array( | |
'макс' => 'product/page/view/about', | |
'product/contact' => 'product/contact', | |
'product/login' => 'product/login', | |
'' => 'product/index', | |
), | |
'appendParams' => true, | |
'routeVar' => 'r', | |
'caseSensitive' => true, | |
'matchValue' => false, | |
'cacheID' => 'cache', | |
), | |
'db' => array( | |
'connectionString' => 'mysql:host=localhost;dbname=testdrive', | |
'emulatePrepare' => true, | |
'username' => 'root', | |
'password' => '', | |
'charset' => 'utf8', | |
'schemaCachingDuration' => 0, | |
'schemaCachingExclude' => array(), | |
'schemaCacheID' => 'cache', | |
'autoConnect' => true, | |
'emulatePrepare' => false, | |
'enableParamLogging' => false, | |
'enableProfiling' => false, | |
'tablePrefix' => null, | |
'initSQLs' => null, | |
), | |
'errorHandler' => array( | |
// use 'site/error' action to display errors | |
'errorAction' => 'product/error', | |
// maximum number of source code lines to be displayed | |
'maxSourceLines' => 25, | |
// maximum number of trace source code lines to be displayed | |
'maxTraceSourceLines' => 10, | |
// the application administrator information (could be a name or email link). | |
// It is displayed in error pages to end users | |
'adminInfo' => 'the webmaster', | |
// whether to discard any existing page output before error display | |
'discardOutput' => true, | |
), | |
'log' => array( | |
'class' => 'CLogRouter', | |
'routes' => array( | |
array( | |
'class' => 'CFileLogRoute', | |
'levels' => 'error, warning', | |
), | |
array( | |
'class' => 'CWebLogRoute', | |
'showInFireBug' => true, // firefox & chrome | |
), | |
), | |
), | |
'session' => array( | |
'autoStart' => true, | |
'behaviors' => array(), | |
), | |
'assets' => array( | |
'linkAssets' => false, | |
'excludeFiles' => array('.svn'), | |
), | |
'themeManager' => array( | |
'themeClass' => 'CTheme', | |
), | |
'authManager' => array( | |
'authFile' => null, | |
'showErrors' => false, | |
'defaultRoles' => array(), | |
), | |
'clientScript' => array( | |
'enableJavaScript' => true, | |
'scriptMap' => array(), | |
), | |
'widgetFactory' => array( | |
'enableSkin' => false, | |
'widgets' => array(), | |
'skinnableWidgets' => null, | |
'skinPath' => null, | |
), | |
'securityManager' => array( | |
'hashAlgorithm' => 'sha1', | |
'cryptAlgorithm' => 'des' | |
), | |
'cache' => array( | |
'keyPrefix' => null, | |
'class' => 'CDummyCache', | |
), | |
'format' => array( | |
'_htmlPurifier' => null, | |
'dateFormat' => 'Y/m/d', | |
'timeFormat' => 'h:i:s A', | |
'datetimeFormat' => 'Y/m/d h:i:s A', | |
'numberFormat' => array( | |
'decimals' => null, | |
'decimalSeparator' => null, | |
'thousandSeparator' => null | |
), | |
'booleanFormat' => array('No', 'Yes'), | |
), | |
'request' => array( | |
'enableCookieValidation' => false, | |
'enableCsrfValidation' => false, | |
'csrfTokenName' => 'YII_CSRF_TOKEN', | |
'csrfCookie' => null | |
) | |
), | |
// application-level parameters that can be accessed | |
// using Yii::app()->params['paramName'] | |
'params' => array( | |
// this is used in contact page | |
'adminEmail' => 'webmaster@example.com', | |
), | |
); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment