setSession($session); $this->pushCurrent(); $this->request = new SS_HTTPRequest( (isset($_SERVER['X-HTTP-Method-Override'])) ? $_SERVER['X-HTTP-Method-Override'] : $_SERVER['REQUEST_METHOD'], '/' ); $this->response = new SS_HTTPResponse(); $this->init(); } }