-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Maybe routes has problem. [setTranslateURIDashes] #1564
Comments
Controller name also needs to be converted. |
Yes. Exactly! but, even if I use $routes->setTranslateURIDashes(true) in app/Config/routes.php file, there is no change. I think that setTranslateURIDashes() function in Router needs to be called somewhere. could you please check this? |
@eterv Just pushed a potential fix, please let me know if it works for you. It is based off of what @bangbangda did, but I think he missed one place. |
@lonnieezell thank you for your help and code. but, I think that need to add below one line code. in CodeIgniter.php :: tryToRouteIt() method // Already exist... // Already exists... After modify it then, finally there is no any problem in auto route. So, could you please consider and test it? |
Good catch. Thanks. Fixed now. |
I use this config.
setTranslateURIDashes(true)
I think that if I connent 'users/login-process' (dash) then,
should be connected to 'login_process' (underscore) method of 'users' controller.
but contrary to my expectation, just I could see 404 page not found error page.
So, I've checked source.
I think that something important source is missing.
so now I'm using below modified code temporarily.
in: system/Router/Router.php :: autoRoute() function
So, could you please check this point?
The text was updated successfully, but these errors were encountered: