I extended CAction (to replace CInlineAction):
class MyControllerAction extends CAction {
function run() {
$controller = $this->getController();
$methodName = 'action'.$this->getId();
// $controller->get =& $_GET; // Wooooot?
return call_user_func_array(array($controller, $methodName), array_values($_GET));
}
} // END Class MyControllerAction */
I extended CController to call that Action (and not CInlineAction) (but that’s not really important now):
public function createAction($actionID) {
if($actionID==='') {
$actionID=$this->defaultAction;
}
return new MyControllerAction( $this, $actionID );
} // END createAction() */
Yii won’t let me set $controller->get (even though that’s one of the biggest advantages of PHP!):
The million dollar question is: how can I set $controller->get
by reference?