我正在网站上工作并安装了权利模块(https://code.google.com/p/yii-rights/)
并且在我的localhost工作正常但是当我将网站上传到托管时它说:
"无法解析请求" rights / authItem / tasks"。"
这是我的urlManager:
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'caseSensitive'=>false,
'rules'=>array(
'<module:\w+>/<controller:\w+>/<action:\w+>'=>'<module>/<controller>/<action>',
array(
'class' => 'application.components.CategoriesRule',
'connectionID' => 'db',
),
array(
'class' => 'application.components.SinglePropertiesRule',
'connectionID' => 'db',
),
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
非常感谢!