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();
        });

    }
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();
        });

    }
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 ( ) ; } ) ; }
Register a specific route and call it's renderers

@param $method
@param $path
@param $controller
@param $action
Register a specific route and call it s renderers