mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
[FEATURE] Added ressource controller type
This commit is contained in:
@@ -99,8 +99,12 @@ class SimpleRouter {
|
||||
return $route;
|
||||
}
|
||||
|
||||
public static function ressource($controller, $settings = array()) {
|
||||
// not yet implemented
|
||||
public static function ressource($url, $controller) {
|
||||
$route = new RouterRessource($url, $controller);
|
||||
$router = RouterBase::getInstance();
|
||||
$router->addRoute($route);
|
||||
|
||||
return $route;
|
||||
}
|
||||
|
||||
public function getRoute($controller = null, $parameters = null, $getParams = null) {
|
||||
|
||||
Reference in New Issue
Block a user