# |
Apr 26th 2019, 09:26 |
asdfgh |
neon1024 i see the port is only mentioned here: https://api.cakephp.org/3.7/source-class-Cake.Http.ServerRequest.html#2324 |
# |
Apr 26th 2019, 09:25 |
neon1024 |
@patox44 Don’t you need a route with `**` in to pass slashes? |
# |
Apr 26th 2019, 09:25 |
neon1024 |
@asdfgh I won’t give you the code, you can work it out from here. |
# |
Apr 26th 2019, 09:23 |
patox44 |
how can I send '/' as param in url? I tried via `encodeURIComponent` in js, but it not works. I got error Object is not found `/dataset/PWW-06%20RADIATOR%20L%2FL/stock` |
# |
Apr 26th 2019, 09:21 |
asdfgh |
neon1024 ^ |
# |
Apr 26th 2019, 09:18 |
asdfgh |
i need 'http://localhost:7895/' |
# |
Apr 26th 2019, 09:18 |
asdfgh |
neon no wiat if i print that url i see 'http://localhost:7895/agents/dashboard' |
# |
Apr 26th 2019, 09:17 |
neon1024 |
You can go and check the PSR7 standard if you want to |
# |
Apr 26th 2019, 09:17 |
neon1024 |
As I said, it’s all there |
# |
Apr 26th 2019, 09:16 |
asdfgh |
(and WITH the port if exists) |
# |
Apr 26th 2019, 09:16 |
asdfgh |
without the path |
# |
Apr 26th 2019, 09:16 |
asdfgh |
neon1024 what about if i only need the url of the website? |
# |
Apr 26th 2019, 09:16 |
asdfgh |
thanks!!! |
# |
Apr 26th 2019, 09:15 |
neon1024 |
Will contain all the data you need |
# |
Apr 26th 2019, 09:15 |
neon1024 |
`var_dump($this->getRequest()->getUri()` |
# |
Apr 26th 2019, 09:14 |
asdfgh |
i need the entire path |
# |
Apr 26th 2019, 09:14 |
asdfgh |
i tried getPath() path it prints the /:controller/:action |
# |
Apr 26th 2019, 09:14 |
asdfgh |
i need to print that string in a view |
# |
Apr 26th 2019, 09:14 |
asdfgh |
pardon guys i do not with a way to get the host() of the website via the request |
# |
Apr 26th 2019, 09:13 |
asdfgh |
hello |
# |
Apr 26th 2019, 07:55 |
conehead |
Good mornin |
# |
Apr 26th 2019, 07:54 |
neon1024 |
Morning all! :wave: Happy Friday |
# |
Apr 26th 2019, 07:54 |
conehead |
Thats true. Still I think its a good choice to bump to 7.2 |
# |
Apr 26th 2019, 07:52 |
admad |
running too close to the edge increases the changes of falling over :slightly_smiling_face: |
# |
Apr 26th 2019, 07:51 |
conehead |
@admad make it php 7.3! :P |
# |
Apr 26th 2019, 07:18 |
admad |
final chance for anyone to object to bumping to php 7.2 for cake 4 :slightly_smiling_face: https://github.com/cakephp/cakephp/pull/13165 |
# |
Apr 26th 2019, 04:21 |
hollistergraham123 |
I found this. Is this the recommended way to handle this problem? |
# |
Apr 26th 2019, 04:21 |
hollistergraham123 |
https://stackoverflow.com/questions/50229244/cakephp-3-exception-handling-serialization-in-a-restful-api |
# |
Apr 26th 2019, 02:29 |
voycey |
Are you using environment variables for your config? (.env etc?) - this greatly simplfies everything as you can just provide a different .env to populate the config files |
# |
Apr 26th 2019, 00:08 |
hollistergraham123 |
Is there a function on the entity interface to get the first error as a string? |
# |
Apr 25th 2019, 22:40 |
sdevore |
So not sure if anyone is usingFriendsOfCake/CakePDF with wktohtmlpdf but I got a significant speed up in pdf generation by removing border-radius from elements to be rendered (from 30+ seconds to < .5 second) (based on some reading in here https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1510 ) |
# |
Apr 25th 2019, 22:29 |
rudy1976s |
Hello !! what is the correct way to disable <<csfr for certain action , using CSFR middleware ? |
# |
Apr 25th 2019, 20:10 |
ricksaccous |
good luck |
# |
Apr 25th 2019, 20:10 |
ricksaccous |
just sounds like relations or request data is set up wrong |
# |
Apr 25th 2019, 20:09 |
waspinator |
how would you save associated data when the model has two `belongsTo` relations? i.e. `A` contains `B` contains `C` which `belongsTo` both `A` and `B`. adding `['associated' => ['B.C']` complains that the `A_id` is empty when trying to save `C` |
# |
Apr 25th 2019, 19:07 |
devito |
leme give it a shot |
# |
Apr 25th 2019, 19:03 |
ricksaccous |
and you should be good i think |
# |
Apr 25th 2019, 19:03 |
ricksaccous |
you just apply the pagination after the filters |
# |
Apr 25th 2019, 19:03 |
ricksaccous |
then no it shouldn't |
# |
Apr 25th 2019, 19:03 |
devito |
im using sortwhitelist, and if i do not use filters the table is sortable but when i do use filters the sort gets disabled |
# |
Apr 25th 2019, 19:02 |
devito |
3 |