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
A "right way" to extend UsersController
, and have the routes point to the extended controller? (latest develop
branch)
#823
Comments
UsersController
, and have the routes point to the extended controller?UsersController
, and have the routes point to the extended controller? (latest develop
branch)
Hi, The documentation needs to be updated. Flagging this as 'improvement'. Thanks. |
If there's a way to do it that does already work, feel free to point me in the right direction and I'll want to work on updating the documentation with the process |
Keep in mind that develop branch is not a 'stable' branch, you should use a stable release on production. |
Thank you!!! This is probably exactly what I'm looking for :)
Yep! My goal is to help with the develop branch and see the latest middleware pattern out there as well |
@groovenectar In this case take a look into branch 9.next |
Thank you for helping us @groovenectar |
My pleasure @steinkel @rochamarcelo Also I found out what was going on here! In The |
Using the latest
develop
branchI did follow the docs here: https://github.com/CakeDC/users/blob/develop/Docs/Documentation/Extending-the-Plugin.md#extending-the-controller
Controller
./src/Controller/UsersController.php
:Config file
./config/users.php
:This results in the core
UsersController
still being used when accessing/login
If the route is overridden in the app's
routes.php
(I'm not sure if that is the correct pattern, just one of the possible solutions tried):Then this results in a redirect loop...
Doing a
dd(Configure::read());
shows that the configuration values are loaded, overriding the default valuesThe text was updated successfully, but these errors were encountered: