Configures MOD REWRITE + URLMANAGER
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user