1
0

Configures MOD REWRITE + URLMANAGER

This commit is contained in:
2014-05-13 14:58:34 +02:00
parent 5dfb77ec5e
commit 374648bce3
7 changed files with 143 additions and 3268 deletions

View File

@@ -37,7 +37,7 @@ return ArrayX::merge(array(
// application components
'components'=>array(
'bootstrap' => array(
'class' => 'bootstrap.components.TbApi',
'class' => 'bootstrap.components.TbApi',
),
'user'=>array(
@@ -46,16 +46,26 @@ return ArrayX::merge(array(
),
// uncomment the following to enable URLs in path-format
/*
'urlManager'=>array(
'urlFormat'=>'path',
'urlFormat' => 'path',
//'caseSensitive' => true,
'showScriptName' => true,
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
'' => 'site/index',
'<action:(index|about)>' => 'site/<action>',
'gii' => 'gii',
'gii/<controller:\w+>' => 'gii/<controller>',
'gii/<controller:\w+>/<action:\w+>' => 'gii/<controller>/<action>',
// '<controller:\w+>/<id:\d+>' => '<controller>/view',
// '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
// '<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
),
*/
'log'=>array(
'class'=>'CLogRouter',