-
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
config: change default config for Auto Routing Improved #8981
config: change default config for Auto Routing Improved #8981
Conversation
cd8bd92
to
5dd958e
Compare
9c00f98
to
61ae88e
Compare
👋 Hi, @kenjis! |
Feature::$autoRoutesImproved -> true Routing::$translateUriToCamelCase -> true
61ae88e
to
ecfbc2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Even if you don't change the default controller name, you must remove the defined route `$routes->get('/', 'Home::index');`.
Examples of Controller Names | ||
**************************** | ||
|
||
This is an valid controller name. Because ``App\Controllers\HelloWorld`` is CamelCase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, I didn't like using 'This is', it made the review difficult for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed to The following is
.
|
||
1. The first segment represents the controller **class** that should be invoked. | ||
2. The second segment represents the class **method** that should be called. | ||
3. The third, and any additional segments, represent any **parameters** that will be passed to the controller. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took from this sentence that the parameters are sent to the controller.
But the parameters are sent to the methods in the controller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to the controller method
.
I think it's worth adding a note about Filters. |
@neznaika0 Added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Needs #8980
Description
Feature::$autoRoutesImproved
-> trueRouting::$translateUriToCamelCase
-> trueChecklist: