menghuangxiao 2012-10-17 15:31:05 3839次浏览 2条回复 0 0 0

新建一个名为“test”的module后,就改了下面的代码,输入http://localhost/yii_demo/demo/test/index.php/gii后出错:Unable to resolve the request "gii".

       '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>',	
        'gii'=>'gii',
        'gii/<controller:\w+>'=>'gii/<controller>',
        'gii/<controller:\w+>/<action:\w+>'=>'gii/<controller>/<action>',

    ),
)
您需要登录后才可以回复。登录 | 立即注册