# |
Feb 13th 2020, 11:15 |
dereuromark |
heroku is free if you dont need 24/7 uptime |
# |
Feb 13th 2020, 11:14 |
challgren |
knownhost.com is who I use |
# |
Feb 13th 2020, 11:14 |
challgren |
@damiano I have my own VPS that runs cPanel |
# |
Feb 13th 2020, 11:14 |
damiano |
guys, i know i am off-topic but ...please...help me :) i am looking for dedicated (cheap) server to run a cakephp application. Where do you run your application? |
# |
Feb 13th 2020, 11:13 |
challgren |
mod_rewrite installed? |
# |
Feb 13th 2020, 11:13 |
conehead |
Hm...this kills my cake project on a new server in the htaccess file. Everything is working fine on a different server ``` RewriteRule (.*) webroot/$1 [L]``` |
# |
Feb 13th 2020, 11:12 |
challgren |
Yep you can |
# |
Feb 13th 2020, 11:09 |
sebastian.krzewinski. |
i just need controllers from /controllers/admin |
# |
Feb 13th 2020, 11:09 |
sebastian.krzewinski. |
bec i dont need them |
# |
Feb 13th 2020, 11:08 |
challgren |
Ohh yeah I toast pages right away |
# |
Feb 13th 2020, 11:08 |
sebastian.krzewinski. |
like pages/users |
# |
Feb 13th 2020, 11:08 |
challgren |
default? |
# |
Feb 13th 2020, 11:08 |
sebastian.krzewinski. |
ok then all defalt controllesrs i can delate? |
# |
Feb 13th 2020, 11:07 |
challgren |
By default its going to bake index, edit, delete, add. If you dont need them remove em |
# |
Feb 13th 2020, 11:07 |
dereuromark |
do the things you want. |
# |
Feb 13th 2020, 11:07 |
dereuromark |
dont wry about what you dont want right now :) |
# |
Feb 13th 2020, 11:06 |
sebastian.krzewinski. |
now if i dont want to connect by /users , i need to comment index funcion in /controller/users ? |
# |
Feb 13th 2020, 11:05 |
sebastian.krzewinski. |
cool :) |
# |
Feb 13th 2020, 11:05 |
sebastian.krzewinski. |
hmm |
# |
Feb 13th 2020, 11:05 |
challgren |
My app with 10 controllers I have 1 route->connect in it |
# |
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 |