passing parameter to class action


The docs describe how to pass parameters (from GET) in an inline actionXXX action,

but I cant figure out how to pass a parameter to a class action declared in public actions(){}

that is to say how to translate

public actionView($id) {}


class ViewAction extends CAction{

public function run(){



apparently putting a parameter $id in the run function signature does not work