CodeIgniter Forums
I need to help with routes problem. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: I need to help with routes problem. (/showthread.php?tid=72264)



I need to help with routes problem. - eterv - 11-28-2018

I need to help with routes problem.

Below is a part of My Config/Routes.php file.

PHP Code:
$routes->setDefaultNamespace('MyTest\Controllers');
$routes->setDefaultController('Home');
$routes->setDefaultMethod('index');
$routes->setTranslateURIDashes(true);
$routes->set404Override('MyTest\Libraries\Errors::show404');
$routes->setAutoRoute(true); 

I need to use TranlateURIDashes. I hope that Router automatically route this.
for example, 'users/login-process' to 'users/login_process'.
but when I connect 'http://mytest/users/login-process', then just I could see 404 page not found error page.

So, Why? I don't understand this part..
Please, help me.

(Sorry, I'm not good at English..)


RE: I need to help with routes problem. - eterv - 12-04-2018

PLEASE, let me know your opinion.

Actually I created an issue.
https://github.com/codeigniter4/CodeIgniter4/issues/1564

And now, there is a closed PR. Why closed?? (T.T)
https://github.com/codeigniter4/CodeIgniter4/pull/1570


RE: I need to help with routes problem. - ciadmin - 12-04-2018

The author of the PR closed it - you should ask him/her why. My guess is that they tried to address your github issue, and you responded that it didn't help.
Your github issue has a comment suggesting that you solved the problem, yet here you are looking for something more?

Your issue will be addressed, but we don't control the developers' volunteer efforts. There are 32 issues older than yours on github, and you will need to be patient, sorry! If someone in the community comes up with a fix or workaround in the meantime, that would be great Smile


RE: I need to help with routes problem. - eterv - 12-04-2018

(12-04-2018, 11:15 AM)ciadmin Wrote: The author of the PR closed it - you should ask him/her why. My guess is that they tried to address your github issue, and you responded that it didn't help.
Your github issue has a comment suggesting that you solved the problem, yet here you are looking for something more?

Your issue will be addressed, but we don't control the developers' volunteer efforts. There are 32 issues older than yours on github, and you will need to be patient, sorry! If someone in the community comes up with a fix or workaround in the meantime, that would be great Smile

Thank you for your advice.
For now, I'll wait for this  problem to be resolved properly.