Hi, I’m realy new in yii and when i’m trying to acces a URL with a path for the controller i have an error.
I have the urlManager in path format:
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
so, I created a new controller "tipousuario" with gii
Controller ID =admin/tipousuario
It created the next file:
./protected/controllers/admin/TipousuarioController.php
When I am trying to access the URL
www.site.com/index.php/admin.tipousuario
I receive the next error:
CHttpException
You are not authorized to perform this action.
exception ‘CHttpException’ with message 'Unable to resolve the request
“admin.tipousuario”.’ in
.\htdocs\yii\framework\web\CWebApplication.php:328
Stack trace:
#0 .\yii\framework\web\CWebApplication.php(121):
CWebApplication->runController(‘admin.tipousuar…’)
#1 .\htdocs\yii\framework\base\CApplication.php(135):
CWebApplication->processRequest()
#2 .\htdocs\admin2condo\index.php(14): CApplication->run()
#3 {main} REQUEST_URI=/admin2condo/index.php/admin.tipousuario
Thanks for your help