request->params['action'] == 'index') { $this->request->params['action'] = 'view'; } else { $this->request->params['action'] = 'change'; } $this->request->params['pass'] = array('changed'); } /** * index method * * @return void */ public function index() { } /** * change method * * @return void */ public function change() { } }