private function register($method, $path, $controller, $action) {

        $this->klein->respond($method, $path, function($request, $response, $service) use($controller, $action) {
            require_once app_path("controllers/$controller.php");
            $class = new $controller($request, $response, $service);

            $class->_preRender();
            echo $class->_render($class->$action(), array());
            $class->_postRender();
        });

    }