# |
Feb 13th 2020, 13:46 |
rightscoreanalysis |
I am using the CRUD plugin, the book recommends to protect against csfr for ajax requests by adding the token found in the hidden field of the form to the request header. But what is to stop someone uo to no good from viewing the ource of the form and copying the token and adding it to a request in something liek Postman - I don't see how the request is not open to anyone with the token? Also what about get requests which do not |
# |
Feb 13th 2020, 12:36 |
sebastian.krzewinski. |
now i figured how is work connection controller with actions and if i link a button with simply action like "add" there will be working everywhere |
# |
Feb 13th 2020, 12:31 |
sebastian.krzewinski. |
i know i know. its stupid for you but still learning this framework |
# |
Feb 13th 2020, 12:30 |
noel |
Any idea what's causing this: ```Aura\Intl\Exception: Package 'cake' with locale 'en_US' is not registered. in /vendor/aura/intl/src/Aura/Intl/PackageLocator.php``` |
# |
Feb 13th 2020, 12:22 |
challgren |
Is it a remote? I have ones of those! |
# |
Feb 13th 2020, 12:18 |
slackebot |
Action: admad wonders what the "universal button" does, is it as powerful as Thanos' snap? |
# |
Feb 13th 2020, 11:52 |
pieceof |
thx sz |
# |
Feb 13th 2020, 11:52 |
sebastian.krzewinski. |
@dereuromark i solved it |
# |
Feb 13th 2020, 11:52 |
dereuromark |
I never use the magic methods, they kill all IDE support^^ |
# |
Feb 13th 2020, 11:52 |
neon1024 |
@pieceof Just append `->select()`? |
# |
Feb 13th 2020, 11:52 |
dereuromark |
@sebastian.krzewinski. what is a universal button? |
# |
Feb 13th 2020, 11:51 |
pieceof |
is it posible to add fields[] to ```$users->findTrollsByUsername('bro');``` by design ? |
# |
Feb 13th 2020, 11:46 |
sebastian.krzewinski. |
I have a question, there is possible to do universal button from add funcion? |
# |
Feb 13th 2020, 11:36 |
damiano |
yeah i found them too (soyoustart) |
# |
Feb 13th 2020, 11:36 |
admad |
@damiano if you are in EU OVH has cheap VPS with free Plesk |
# |
Feb 13th 2020, 11:30 |
damiano |
thanks @javier.villanueva |
# |
Feb 13th 2020, 11:27 |
javier.villanueva |
I recommend you https://uberspace.de/en/ |
# |
Feb 13th 2020, 11:17 |
damiano |
it is a website, it is not for dev purpose |
# |
Feb 13th 2020, 11:16 |
damiano |
@dereuromark yeah it must run 24/7 |
# |
Feb 13th 2020, 11:16 |
damiano |
thanks @challgren i am looking at their website |
# |
Feb 13th 2020, 11:16 |
conehead |
Getting 500..not even receiving a `die("foo")` from the index.php file. When removing the last rewrite rule, I can see the die message |
# |
Feb 13th 2020, 11:15 |
conehead |
```<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^(\.well-known/.*)$ $1 [L] RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] </IfModule>``` |
# |
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 |