Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routes Not working #2301

Closed
crustamet opened this issue Oct 4, 2019 · 2 comments
Closed

Routes Not working #2301

crustamet opened this issue Oct 4, 2019 · 2 comments

Comments

@crustamet
Copy link
Contributor

$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

@crustamet
Copy link
Contributor Author

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.

@MGatner
Copy link
Member

MGatner commented Oct 7, 2019

Confirmed the error. I think I have a fix ready for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants