# |
Sep 10th 2019, 10:39 |
ndm |
You are late to the party https://youtrack.jetbrains.net/issue/WI-28522 |
# |
Sep 10th 2019, 10:30 |
neon1024 |
I can use Marks ide helper to fix them, but feels like something php storm should be able to do |
# |
Sep 10th 2019, 10:22 |
neon1024 |
It generates them like this `* @property \App\Model\Table\AuditsTable Audits` |
# |
Sep 10th 2019, 10:22 |
neon1024 |
Does anyone know how I can force PHPStorm to add the `@property` docblock but including the `$` for the variable? |
# |
Sep 10th 2019, 10:15 |
dereuromark |
If you do that on App level it will automatically always use your helper everywhere without further changes needed. |
# |
Sep 10th 2019, 10:14 |
dereuromark |
You should be able to use your own Url helper that extends core one to auto-default to what you need. |
# |
Sep 10th 2019, 10:03 |
turkles |
hrm, if I do Form->create() does the url portion use the Router? and if so would i be able to use a prefix route to configure the router to always use fullBase? Then I don't have to wrry about configuring the helpers? |
# |
Sep 10th 2019, 09:51 |
dereuromark |
jep |
# |
Sep 10th 2019, 09:49 |
admad |
Or collection |
# |
Sep 10th 2019, 09:49 |
admad |
I don't think it's required either, just use a loop |
# |
Sep 10th 2019, 09:48 |
admad |
Multi URL isn't supported |
# |
Sep 10th 2019, 09:47 |
dereuromark |
just the multi URL cases should be removed or changed to some multi wrapper :slightly_smiling_face: |
# |
Sep 10th 2019, 09:47 |
admad |
Yup |
# |
Sep 10th 2019, 09:47 |
dereuromark |
then array sure makes sens to keep, indeed. |
# |
Sep 10th 2019, 09:47 |
admad |
@dereuromark it's a URL array, not array for multiple images |
# |
Sep 10th 2019, 09:44 |
turkles |
I think, having tried to look at the code, it might be setting 'fullBase' in the config, which I can do on the fly.. I already add something to my requests to use specific layout (no menus etc in response), just got to figure out how |
# |
Sep 10th 2019, 09:43 |
challgren |
I like @turkles’s question |
# |
Sep 10th 2019, 09:40 |
dereuromark |
Still a single URL basically? just as array syntax? |
# |
Sep 10th 2019, 09:39 |
dereuromark |
Or is the array a URL array? |
# |
Sep 10th 2019, 09:39 |
dereuromark |
I wonder if a special wrapper to support array could be added instead? imageMulti() etc? |
# |
Sep 10th 2019, 09:38 |
turkles |
In 3.8 is it possible to configure the Url helper to always return full base? I'm trying to display some forms in a chrome extension which already exist, but of course by default links etc point to the site I am using not to the origin |
# |
Sep 10th 2019, 09:37 |
admad |
If we were starting fresh I wouldn't support it |
# |
Sep 10th 2019, 09:36 |
admad |
Such use case is rare but we do support it in 3.x so it's better to retain it :slightly_smiling_face: |
# |
Sep 10th 2019, 09:33 |
spriz |
I just assumed it would need to be a string as that would make sense to me |
# |
Sep 10th 2019, 09:32 |
spriz |
Nah, but all I'm saying is that I did not even expect being able to put arrays directly in there |
# |
Sep 10th 2019, 09:32 |
challgren |
Yeah |
# |
Sep 10th 2019, 09:32 |
admad |
Having to use Router::url() like @spriz showed isn't user friendly |
# |
Sep 10th 2019, 09:31 |
admad |
Usage would be same in 3.x too if someone is generating assets dynamically |
# |
Sep 10th 2019, 09:30 |
challgren |
I couldnt find any 3.x codebases using arrays |
# |
Sep 10th 2019, 09:30 |
challgren |
But again those were only in 1.x and 2.x |
# |
Sep 10th 2019, 09:29 |
admad |
..in HtmlHelper at least |
# |
Sep 10th 2019, 09:29 |
admad |
@challgren thanks for looking into this. It has made me realise that ability to using arrays should be retained |
# |
Sep 10th 2019, 09:18 |
challgren |
@david it should |
# |
Sep 10th 2019, 09:10 |
david |
I'm using Client() to execute a get request using a proxy. If I need to use a a proxy in a post request, is the same way as GET? |
# |
Sep 10th 2019, 09:09 |
david |
Morning |
# |
Sep 10th 2019, 09:08 |
spriz |
In cases where we do show image (svg) generated by another controller we actually do `$this->Html->image(Router::url([])...)` :shrug: |
# |
Sep 10th 2019, 09:07 |
challgren |
Yeah true that would be really the only time I could see using an array |
# |
Sep 10th 2019, 09:03 |
neon1024 |
Although if could generate it, you could probably save it to the file system |
# |
Sep 10th 2019, 09:02 |
neon1024 |
As it looks like the array in this instance might be calling a controller to generate a barcode |
# |
Sep 10th 2019, 09:02 |
neon1024 |
Still the use-case is valid @challgren |
# |
Sep 10th 2019, 08:47 |
challgren |
Ok so to play devils advocate, even if they are deprecated in 3.9, I’m pretty sure the people writing code like that dont have proper tests in place to find the deprecations |