# |
Feb 13th 2020, 11:04 |
challgren |
Cake has magic in it so you dont need to define every route |
# |
Feb 13th 2020, 11:04 |
sebastian.krzewinski. |
sorry |
# |
Feb 13th 2020, 11:04 |
sebastian.krzewinski. |
ok.. its strange for me |
# |
Feb 13th 2020, 11:03 |
dereuromark |
geeze^^ |
# |
Feb 13th 2020, 11:03 |
challgren |
And we are telling you to remove it |
# |
Feb 13th 2020, 11:03 |
dereuromark |
remove it. |
# |
Feb 13th 2020, 11:03 |
dereuromark |
exactly |
# |
Feb 13th 2020, 11:03 |
sebastian.krzewinski. |
i want to connect by prefix /admin/users |
# |
Feb 13th 2020, 11:02 |
dereuromark |
thats not a valid definition for what you want |
# |
Feb 13th 2020, 11:02 |
sebastian.krzewinski. |
why is wrong? |
# |
Feb 13th 2020, 11:02 |
dereuromark |
The /users is wrong |
# |
Feb 13th 2020, 11:02 |
dereuromark |
the one in the admin at least :) |
# |
Feb 13th 2020, 11:01 |
challgren |
You dont need it |
# |
Feb 13th 2020, 11:01 |
challgren |
No the whole connect you have in your routes |
# |
Feb 13th 2020, 11:01 |
sebastian.krzewinski. |
you mean index()? |
# |
Feb 13th 2020, 11:00 |
challgren |
remove the connect |
# |
Feb 13th 2020, 11:00 |
sebastian.krzewinski. |
i have a created admin/userscontroller |
# |
Feb 13th 2020, 10:59 |
challgren |
you need --prefix Admin |
# |
Feb 13th 2020, 10:59 |
challgren |
Id remove the connect and create a controller in /src/Controllers/Admin/UsersController.php |
# |
Feb 13th 2020, 10:59 |
sebastian.krzewinski. |
bin/cake bake all users |
# |
Feb 13th 2020, 10:59 |
challgren |
Well if your baking controllers correctly you honestly dont need to connect it |
# |
Feb 13th 2020, 10:58 |
sebastian.krzewinski. |
yea but i want just to see /admin/users. /users is useless |
# |
Feb 13th 2020, 10:57 |
challgren |
move that up into the other block |
# |
Feb 13th 2020, 10:56 |
sebastian.krzewinski. |
https://i.imgur.com/1Zs8tds.png |
# |
Feb 13th 2020, 10:56 |
challgren |
thats why |
# |
Feb 13th 2020, 10:56 |
sebastian.krzewinski. |
yes |
# |
Feb 13th 2020, 10:56 |
challgren |
is your users prefix inside the admin prefix? |
# |
Feb 13th 2020, 10:56 |
sebastian.krzewinski. |
users apears in /users and /admin/users |
# |
Feb 13th 2020, 10:55 |
sebastian.krzewinski. |
but |
# |
Feb 13th 2020, 10:55 |
sebastian.krzewinski. |
today i made "users" |
# |
Feb 13th 2020, 10:55 |
ndm |
Actuall it wont if the file exists |
# |
Feb 13th 2020, 10:55 |
sebastian.krzewinski. |
now i know it |
# |
Feb 13th 2020, 10:55 |
challgren |
yeah but if you have a prefix cake is going to try to process the requests to /admin/* |
# |
Feb 13th 2020, 10:54 |
sebastian.krzewinski. |
.. webroot/admin was for files |
# |
Feb 13th 2020, 10:53 |
challgren |
Whats your problem? |
# |
Feb 13th 2020, 10:53 |
challgren |
Yeah and a folder called wwwroot/admin |
# |
Feb 13th 2020, 10:52 |
sebastian.krzewinski. |
yesterday i created prefix in routes "/admin" |
# |
Feb 13th 2020, 10:51 |
sebastian.krzewinski. |
i have a little problem |
# |
Feb 13th 2020, 10:48 |
sebastian.krzewinski. |
Hello all |
# |
Feb 13th 2020, 10:40 |
neon1024 |
I’d have a look in the logs |
# |
Feb 13th 2020, 10:39 |
neon1024 |
Probably redirecting back to an action after failing validation I would imagine |