public function index(RouteEx $_route) { $viewPath = Str::camel(str_replace(' ', '', ucwords(preg_replace('/(\\W+)/', '\\1 ', $_route->getPath())))); return new View($viewPath, [], false); }
public function index(RouteEx $_route) { $viewPath = $this->getViewPath($_route->getPath()); return new View($viewPath); }