public function _dispatch($action, $httpMethod, $vars = array())
    {
        $this->_action = $action;
        $this->_data = $_POST;
        $this->_params = array_merge(Atomik::get('request'), $vars);
        $this->_httpMethod = $httpMethod;
        
        $this->preDispatch();
        $result = $this->_execute($action, $this->_params);
        $this->postDispatch($result);
        return $result;
    }
public function _dispatch($action, $httpMethod, $vars = array())
    {
        $this->_action = $action;
        $this->_data = $_POST;
        $this->_params = array_merge(Atomik::get('request'), $vars);
        $this->_httpMethod = $httpMethod;
        
        $this->preDispatch();
        $result = $this->_execute($action, $this->_params);
        $this->postDispatch($result);
        return $result;
    }
public function _dispatch ( $ action , $ httpMethod , $ vars = array ( ) ) { $ this -> _action = $ action ; $ this -> _data = $ _POST ; $ this -> _params = array_merge ( Atomik :: get ( 'request' ) , $ vars ) ; $ this -> _httpMethod = $ httpMethod ; $ this -> preDispatch ( ) ; $ result = $ this -> _execute ( $ action , $ this -> _params ) ; $ this -> postDispatch ( $ result ) ; return $ result ; }
Dispatches a request to a controller action

@param string $action
@param string $httpMethod
@param array $vars
Dispatches a request to a controller action