Reputation: 3498
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
Upvotes: 2
Views: 5214
Reputation: 4607
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('*'),
),
);
}
Upvotes: 3