public function doAction($action,$params){
        if(method_exists($this,$action)){
            $this->$action($params);
        }
        else{
            $this->ActionNotFound($action,$params);
        }
    }
public function doAction($action,$params){
        if(method_exists($this,$action)){
            $this->$action($params);
        }
        else{
            $this->ActionNotFound($action,$params);
        }
    }
public function doAction ( $ action , $ params ) { if ( method_exists ( $ this , $ action ) ) { $ this -> $ action ( $ params ) ; } else { $ this -> ActionNotFound ( $ action , $ params ) ; } }
Execute the action if it exists, else calling ActionNotFound method
@param string $action The action name
@param array $params An array that olds the arguments part of the request
Execute the action if it exists else calling ActionNotFound method