# |
Apr 26th 2019, 09:28 |
asdfgh |
neon1024 yes so i should get that object and then pass to withHOst ? |
# |
Apr 26th 2019, 09:28 |
neon1024 |
Which has methods to get all the parts of the url, use those is my suggestion |
# |
Apr 26th 2019, 09:28 |
patox44 |
do you mean something like this? |
# |
Apr 26th 2019, 09:28 |
neon1024 |
PSR7 encompasses a uri in a class instance |
# |
Apr 26th 2019, 09:27 |
neon1024 |
This is the bit you’re interested in |
# |
Apr 26th 2019, 09:27 |
neon1024 |
@return \Psr\Http\Message\UriInterface Returns a UriInterface instance 2307: * representing the URI of the request. |
# |
Apr 26th 2019, 09:27 |
asdfgh |
i can compose the url for sure but i asked if there is a method without reinvent it |
# |
Apr 26th 2019, 09:27 |
asdfgh |
but sounds "stupid" to clone the object again |
# |
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 |