pool/web/yaamp/config.php
Tanguy Pruvot f3c65e270c explorer: dynamic generation of all explorer links
will use a more friendly format if the coin is visible

bitcoins txs will be linked to an external site, and if the site explorer
is disabled, hyperlinks should be disabled (text only)

+ some other changes related to the explorer...
2016-05-03 21:37:18 +02:00

86 lines
1.5 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.*'),
'components'=>array(
// url() rules...
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'appendParams'=>true,
'caseSensitive'=>false,
'rules'=>array(
// prevent /explorer/id/<num>/p1/v1/... -> /explorer/<num>?params...
'/explorer/<id:\d+>' => array('/explorer', 'urlFormat'=>'get'),
),
),
'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,
),
'cache'=>array(
'class'=>'CMemCache',
'keyPrefix'=>'',
'servers'=>array(
array(
'host'=>'127.0.0.1',
'port'=> 11211,
'weight'=> 60,
),
),
),
),
);