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

error 404 in routing with controller in subdirectories #1276

Closed
hlmqz opened this issue Oct 1, 2018 · 1 comment
Closed

error 404 in routing with controller in subdirectories #1276

hlmqz opened this issue Oct 1, 2018 · 1 comment

Comments

@hlmqz
Copy link

hlmqz commented Oct 1, 2018


name: error 404 in routing with controller in subdirectories
about: Route with subdirectories not work!


Describe the bug
the section "Organizing Your Controllers into Sub-directories" explained in https://bcit-ci.github.io/CodeIgniter4/incoming/controllers.html#id8 not work!

CodeIgniter 4 version
CodeIgniter4 4.0.0-alpha.1

its work!
code_ok
resp_ok

example with subdirectories not work!
code_bug
resp_bug

I tried with directory name in lowercase, but it not work.

Context

  • OS: Ubuntu 18.04
  • Web server: Apache 2.4.29
  • PHP version 7.2.10
@lonnieezell
Copy link
Member

You didn't change the namespace in Othertest.php to reflect the location in the subfolder. It should be namespace App\Controllers\Mysubfolder

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