# |
Feb 17th 2020, 21:57 |
challgren |
@k4t it should be <?= $this->Html->link(‘E-Paper’, [‘t’ => ‘test’]); ?> |
# |
Feb 17th 2020, 21:56 |
ndm |
What's the connected route for that? |
# |
Feb 17th 2020, 21:55 |
k4t |
:S |
# |
Feb 17th 2020, 21:55 |
k4t |
it is a bit funny thing because when I am on "/meine-ausgaben" it will generate "/meine-ausgaben?t=test" but when I am on: "/meine-ausgaben/abc" it will generate "/" |
# |
Feb 17th 2020, 21:54 |
ndm |
Generally that should work I think. |
# |
Feb 17th 2020, 21:52 |
k4t |
<?= $this->Html->link('E-Paper', ['?' => ['t' => 'test']]); ?> this gives me "/" even if I am not on the "/" page |
# |
Feb 17th 2020, 21:51 |
k4t |
@ndm do you have idea how I can append query string to current url in the view with HTML helper? |
# |
Feb 17th 2020, 21:45 |
ndm |
you're welcome |
# |
Feb 17th 2020, 21:44 |
k4t |
thats true |
# |
Feb 17th 2020, 21:43 |
FunkadelicRelic |
Also - gotta say, slightly off topic but this is the most helpful forum/community I think I've ever used. I really appreciate your help. Thank you. |
# |
Feb 17th 2020, 21:42 |
FunkadelicRelic |
Cool, thanks @ndm - I'll look into the beforeMarshal callback - I used that previously for something else so figured it might be the way to go. |
# |
Feb 17th 2020, 21:41 |
slackebot |
selected `recommendationgroups` to fetch the primary keys of the related `recommendations`, and inject them into the data accordingly, which could for example be done in the `beforeMarshal` callback/handler. |
# |
Feb 17th 2020, 21:41 |
ndm |
@FunkadelicRelic For starters that's not something that the ORM can do automatically, as it could with saving an `assessment` with multiple `recommendations`. You'd need to hook into somewhere to do the "conversion" from `recommendationgroups` to `recommendations`. You could do something like fetching a list of selectable groups in your controller, create a form control for them, and when receiving the form data on the server side, use the |
# |
Feb 17th 2020, 21:38 |
k4t |
but this does not work for all routes |
# |
Feb 17th 2020, 21:37 |
k4t |
by using HTMLHelper link method how I can add query string params to current url? Here is what I tried: <?= $this->Html->link('E-Paper', ['?' => ['t' => 'test']]); ?> |
# |
Feb 17th 2020, 21:34 |
k4t |
hello |
# |
Feb 17th 2020, 21:33 |
FunkadelicRelic |
Any ideas where I should start? |
# |
Feb 17th 2020, 21:33 |
FunkadelicRelic |
The idea being, I select a recommendationgroup and it saves all the associated recommendations from that recommendationgroup. |
# |
Feb 17th 2020, 21:32 |
FunkadelicRelic |
On the add.php for assessments, the default bake gives me a select box for selecting 1 or more recommendations. I'd like this to be a dropdown with the recommendationgroups listed. |
# |
Feb 17th 2020, 21:31 |
FunkadelicRelic |
A [recommendation] belongs to a [recommendationgroup]. An [assessment] has many [recommendations]. |
# |
Feb 17th 2020, 21:30 |
FunkadelicRelic |
I have 3 models - [recommendations], [recommendationgroups] and [assessments] |
# |
Feb 17th 2020, 21:30 |
FunkadelicRelic |
Hey all - wondering if anyone can point me in the right direction on an issue I'm having. Well actually it's more my lack of understanding more than anything... |
# |
Feb 17th 2020, 19:42 |
jslamka5685 |
k |
# |
Feb 17th 2020, 19:42 |
challgren |
@jslamka5685 nope https://github.com/cakephp/cakephp/blob/master/src/View/View.php#L949 |
# |
Feb 17th 2020, 19:40 |
jslamka5685 |
Is there any way to use the $this->assign() view functionality for array data rather than string data? |
# |
Feb 17th 2020, 19:31 |
thomas078 |
makes sense. |
# |
Feb 17th 2020, 19:31 |
thomas078 |
Many thanks! |
# |
Feb 17th 2020, 19:31 |
challgren |
You would need to send Buyer-Id: 12345, 123456 |
# |
Feb 17th 2020, 19:31 |
challgren |
No multiple headers are not allowed unless you use a comma between the values |
# |
Feb 17th 2020, 19:31 |
thomas078 |
wrong approach? |
# |
Feb 17th 2020, 19:31 |
thomas078 |
So, what does that mean? :) |
# |
Feb 17th 2020, 19:28 |
challgren |
https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 |
# |
Feb 17th 2020, 19:28 |
slackebot |
in which header fields with the same field-name are received is therefore significant to the interpretation of the combined field value, and thus a proxy MUST NOT change the order of these field values when a message is forwarded” |
# |
Feb 17th 2020, 19:28 |
challgren |
“Multiple message-header fields with the same field-name MAY be present in a message if and only if the entire field-value for that header field is defined as a comma-separated list [i.e., #(values)]. It MUST be possible to combine the multiple header fields into one “field-name: field-value” pair, without changing the semantics of the message, by appending each subsequent field-value to the first, each separated by a comma. The order |
# |
Feb 17th 2020, 19:26 |
thomas078 |
for some reason i only receive the latter |
# |
Feb 17th 2020, 19:26 |
thomas078 |
Buyer-Id: 12345 Buyer-Id: 123456 |
# |
Feb 17th 2020, 19:26 |
thomas078 |
not sure if its nginx or php or cake. Im trying to send duplicate http headers. |
# |
Feb 17th 2020, 18:15 |
kiwi_74 |
@flashios09 ok, cool. Thanks. I'll look into that. Just wanted to see if the answer was already known. |
# |
Feb 17th 2020, 18:14 |
slackebot |
<flashios09> |
# |
Feb 17th 2020, 18:11 |
flashios09 |
@kiwi_74 try and see, the DEBUG KIT timer tab can help you |
# |
Feb 17th 2020, 18:01 |
kiwi_74 |
approach. |