mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
74 lines
1.4 KiB
PHP
74 lines
1.4 KiB
PHP
<?php
|
|
|
|
return array(
|
|
'name'=>YAAMP_SITE_URL,
|
|
|
|
'defaultController'=>'site',
|
|
'layout'=>'main',
|
|
|
|
'basePath'=>YAAMP_HTDOCS."/yaamp",
|
|
'controllerPath'=>'yaamp/modules',
|
|
'viewPath'=>'yaamp/modules',
|
|
'layoutPath'=>'yaamp/ui',
|
|
|
|
'preload'=>array('log'),
|
|
'import'=>array('application.components.*'),
|
|
// 'params'=>require("siteconfig.php"),
|
|
|
|
'components'=>array(
|
|
|
|
'urlManager'=>array(
|
|
'urlFormat'=>'path',
|
|
'showScriptName'=>false,
|
|
'appendParams'=>false,
|
|
'caseSensitive'=>false,
|
|
'rules'=>array(
|
|
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
|
|
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
|
|
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
|
|
),
|
|
),
|
|
|
|
'assetManager'=>array(
|
|
'basePath'=>YAAMP_HTDOCS."/assets"),
|
|
|
|
'log'=>array(
|
|
'class'=>'CLogRouter',
|
|
'routes'=>array(
|
|
array(
|
|
'class'=>'CFileLogRoute',
|
|
'levels'=>'error, warning',
|
|
// 'levels'=>'debug, trace, error, warning',
|
|
),
|
|
// array(
|
|
// 'class'=>'CProfileLogRoute',
|
|
// 'report'=>'summary',
|
|
// ),
|
|
),
|
|
),
|
|
|
|
'user'=>array(
|
|
'allowAutoLogin'=>true,
|
|
'loginUrl'=>array('site/login'),
|
|
),
|
|
|
|
'db'=>array(
|
|
'class'=>'CDbConnection',
|
|
'connectionString'=>"mysql:host=".YAAMP_DBHOST.";dbname=".YAAMP_DBNAME,
|
|
|
|
'username'=>YAAMP_DBUSER,
|
|
'password'=>YAAMP_DBPASSWORD,
|
|
|
|
'enableProfiling'=>false,
|
|
'charset'=>'utf8',
|
|
'schemaCachingDuration'=>3600,
|
|
),
|
|
),
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|