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

Bug: Cannot use Autoroute (by using the method from the documentation) #9430

Open
nadhiroov opened this issue Jan 22, 2025 · 4 comments
Open

Comments

@nadhiroov
Copy link

PHP Version

8.3

CodeIgniter4 Version

4.6.0

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

Windows

Which server did you use?

apache

Database

MariaDB 11.2.2

What happened?

i enable the auto routes and follow instruction in docs but still not work, untuk i change the value in app/Config/Feature.php public bool $autoRoutesImproved = false; (the opposite of documentation)

Steps to Reproduce

before i update the framework to 4.6.0 i use 4.5.7 and it work normally, but after i update to 4.6.0 i cannot use auto route by using the method from the documentation, even i use the opposite way from documentation

Expected Output

i think if i follow the documentation it will work, but isn't

Anything else?

No response

@nadhiroov nadhiroov added the bug Verified issues on the current code behavior or pull requests that will fix them label Jan 22, 2025
@neznaika0
Copy link
Contributor

spark routes what does it show, the necessary routes?

@nadhiroov
Copy link
Author

yes if i use the routes its work, but if use autoroutes (you can define the controller name and its method name according to the convention and it will be automatically routed. In other words, there is no need to define routes manually) its doesn't work

@michalsn
Copy link
Member

Please provide me with the link you used to set up the Auto Routing improved.

I only see this one and everything is in order: https://codeigniter.com/user_guide/incoming/auto_routing_improved.html#enable-auto-routing-improved

@michalsn michalsn removed the bug Verified issues on the current code behavior or pull requests that will fix them label Jan 22, 2025
@michalsn
Copy link
Member

In case you meant to use Auto Routing Legacy - it also works. So you have to be more specific - what exactly is not working.

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