Closed crustamet closed 5 years ago
Is this just me or this is not really working? please i am stuck at this problem. I want to test the default routes if working without any use of routes defined.
Please someone tell me something.
Confirmed the error. I think I have a fix ready for testing.
$routes->setDefaultNamespace('App\Controllers'); $routes->setDefaultController('Frontpanel'); $routes->setDefaultMethod('index'); $routes->setTranslateURIDashes(true); $routes->set404Override(); $routes->setAutoRoute(true);
and removed any routes setters
it goes to this line 557 in System Router
$this->controller = str_replace('/', '\', $this->collection->getDefaultNamespace() . $this->directory . $this->controllerName());
$this->controller equals to App\Controllers\\Frontpanel if i remove the DIRECTORY this will work. but i don`t know why the directory is put there.
So i let you guys decide wtf is going on.
Thanks