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

autoRoute function issue in case of sub-directory #2319

Closed
vargika opened this issue Oct 10, 2019 · 4 comments
Closed

autoRoute function issue in case of sub-directory #2319

vargika opened this issue Oct 10, 2019 · 4 comments

Comments

@vargika
Copy link

vargika commented Oct 10, 2019

If sub-directory is used in the controller, the CodeIgniter\Router class autoRoute function will be wrong, because the directory name will append again to the directory class variable.
Have to set te directory variable to empty at the beginning of the function.
(v4.0.0-rc.2.1)

@MGatner
Copy link
Member

MGatner commented Oct 10, 2019

This was fixed with #2308 - please update to the latest version of develop branch.

@MGatner MGatner closed this as completed Oct 10, 2019
@vargika
Copy link
Author

vargika commented Oct 10, 2019

No, that is not fix my issue.
for examle request path is: Cat/Kitten/index
I call autoRoute with the same 'Cat/Kitten/index'.
the value of the $controller variable will be: App\Controllers\Cat\Cat
and the $method will be: Kitten

@MGatner
Copy link
Member

MGatner commented Oct 10, 2019

I don't completely understand, but I will reopen the issue. Sorry for the peremptory closure.

@MGatner MGatner reopened this Oct 10, 2019
@vargika
Copy link
Author

vargika commented Oct 10, 2019

sorry, I made a mistake. it can be closed.

@vargika vargika closed this as completed Oct 10, 2019
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

2 participants