/** * * This function accepts a routing string to redirect the application internally. A * redirect of this sort clears the output buffer and redraws the header, proceeding * as if the redirected controller/action was called directly. * @param mixed $to */ protected function _redirect($to) { Staple_Main::get()->redirect($to); $this->view->noRender(); }