diff --git a/src/controllers/CrudController.php b/src/controllers/CrudController.php index fb57df4..2403123 100644 --- a/src/controllers/CrudController.php +++ b/src/controllers/CrudController.php @@ -23,7 +23,7 @@ public function __construct(\Lang $lang) $this->route = $route; if($route = $route::current()) { - $routeParamters = $route::current()->parameters(); + $routeParamters = $route->parameters(); if(isset($routeParamters['entity'])) $this->setEntity($routeParamters['entity']); }