Here http://www.yiiframew…sics.controller
there is an example:
Quote
class EditAction extends CAction
{
public function run()
{
// place the action logic here
}
}
In order for the controller to be aware of this action, we override the actions() method of our controller class:
class PostController extends CController
{
public function actions()
{
return array(
'edit'=>'application.controllers.post.UpdateAction',
);
}
}
In the above, we use path alias 'application.controllers.post.UpdateAction to specify that the action class file is protected/controllers/post/UpdateAction.php.
But initially you crerated EditAction, not UpdateAction.
I think, that's just a mistake, yeah? It messed me up a bit, please correct this.