Closed EronarDiaras closed 2 years ago
I added these lines to the config/routes.php:
$routes->scope('/users/', function (RouteBuilder $builder) {
$builder->connect('/{controller}', ['action' => 'index', 'plugin' => 'CakeDC/Users', '_ext' => NULL,]);
$builder->connect('/{controller}/{action}/*', ['plugin' => 'CakeDC/Users', '_ext' => NULL,]);
$builder->fallbacks();
});
(Above these lines: "$routes->scope('/', function (RouteBuilder $builder) {")
And now everything works. But is that a good solution?
@EronarDiaras It looks like you have a link in your layout using ['controller' => 'Projects', 'action' => 'index']
since the layout is being used for /profile action you must change to something like ['controller' => 'Projects', 'action' => 'index', 'plugin' => false]
True... Thank you very much!!!
I just noticed that the CakeDCUsers pages aren't working. (only the pages)
config/routes.php:
But if I overwrite the config/routes.php file:
will work:![missin-route-w](https://user-images.githubusercontent.com/7106113/157656012-d790fbdc-ab7a-40e3-acb5-ba1489e0afe0.png)
its breaks down:![Clipboard02](https://user-images.githubusercontent.com/7106113/157656284-39dd2893-5692-4a0c-9340-f6ee77ae0425.png)
What is wrong? What makes this possible?