Hi, I have controllerA that has:
public function actions(){
return array(
'act1' => 'application.controllers.Dir.Act1Action',
'act2' => 'application.controllers.Dir.Act2Action',
);
}
and then I have controllerB extends controllerA. I want to add some actions to controllerB, without loosing controllerA’s actions.
If I do:
public function actions(){
return array(
'act3' => 'application.controllers.Dir.Act3Action',
'act4' => 'application.controllers.Dir.Act4Action',
);
}
Php returns: cannot redeclare controllerB::actions() in /path/to/controllerB. (sorry, my fault)
So, is there a way to inherit actions from parent controller and add other actions to controller child?
TIA
Danilo