yii-无法找到请求的操作

问题描述:

Is there any setting for URL in YII, I am not getting out of this problem, every time I create a new action, it says The system is unable to find the requested action the requested action is present in that specific controller

在YII中是否有任何URL设置,每次创建新的时候我都没有解决这个问题 行动,它说系统无法找到所请求的操作 strong>特定控制器中存在请求的操作 p> div>

Change the name to actionCreateFeatured.

And you must access it like localhost/project/controller/createFeatured.

for the 2nd error (you are not permitted ...) :

do this in controller :

action function accessRules() {
        return array(
            array('allow',
                'actions' => array('createFeatured'),
                'users' => array('*'),
            ),
        );
    }