# |
Jun 11th 2021, 10:15 |
wizardfix |
@kevin.pfeifer '3.5.17' |
# |
Jun 11th 2021, 10:15 |
paolo.bragagni |
is not possible anymore? |
# |
Jun 11th 2021, 10:15 |
paolo.bragagni |
in my old controller I return json with echo json_encode($results); |
# |
Jun 11th 2021, 10:15 |
paolo.bragagni |
btu noew I have another question.. |
# |
Jun 11th 2021, 10:14 |
paolo.bragagni |
there was an error in my old autocontroller |
# |
Jun 11th 2021, 10:14 |
paolo.bragagni |
steps ahead |
# |
Jun 11th 2021, 09:59 |
kevin.pfeifer |
what is the error / message you get back from your failed ajax request @paolo.bragagni |
# |
Jun 11th 2021, 09:55 |
paolo.bragagni |
no. something missing |
# |
Jun 11th 2021, 09:46 |
kevin.pfeifer |
@wizardfix what cakephp version are you using? |
# |
Jun 11th 2021, 09:29 |
paolo.bragagni |
check again :) |
# |
Jun 11th 2021, 09:29 |
paolo.bragagni |
probably is in my js |
# |
Jun 11th 2021, 09:26 |
paolo.bragagni |
no. doesnt work |
# |
Jun 11th 2021, 09:24 |
wizardfix |
Hi all... just wondering, is there an easy way to stop CakePHP partially logging passwords in stack traces? Like this: `````` |
# |
Jun 11th 2021, 09:23 |
paolo.bragagni |
azz |
# |
Jun 11th 2021, 09:22 |
kevin.pfeifer |
by "it" i mean the whole ``` //->add(new CsrfProtectionMiddleware([ // 'httponly' => true, //]));``` |
# |
Jun 11th 2021, 09:20 |
kevin.pfeifer |
```'httponly' => false,``` doesn't deactive the middleware you have to comment it out to check if its the CSRF Protection which prevents you ajax |
# |
Jun 11th 2021, 09:19 |
paolo.bragagni |
(but) |
# |
Jun 11th 2021, 09:19 |
paolo.bragagni |
put to false bau same behaviour |
# |
Jun 11th 2021, 09:11 |
kevin.pfeifer |
https://github.com/cakephp/app/blob/master/src/Application.php#L103 |
# |
Jun 11th 2021, 09:11 |
kevin.pfeifer |
but you do have the CsrfMiddleware active |
# |
Jun 11th 2021, 09:10 |
paolo.bragagni |
no |
# |
Jun 11th 2021, 09:10 |
kevin.pfeifer |
in your ajax call |
# |
Jun 11th 2021, 09:10 |
kevin.pfeifer |
do you set the CSRF-Toke header? |
# |
Jun 11th 2021, 09:10 |
paolo.bragagni |
(it is an autocomplete function that i use for fill some search inputs) |
# |
Jun 11th 2021, 09:08 |
paolo.bragagni |
and if I fire manually the url I go to right controller |
# |
Jun 11th 2021, 09:08 |
paolo.bragagni |
GET "https://cakephp.local/cake4/cake4/autocomplete/fetch/Libri/titolo?term=la". |
# |
Jun 11th 2021, 09:08 |
paolo.bragagni |
I see |
# |
Jun 11th 2021, 09:08 |
paolo.bragagni |
if I debug the ajax call |
# |
Jun 11th 2021, 09:07 |
paolo.bragagni |
it worked in cake 2 :S |
# |
Jun 11th 2021, 09:05 |
paolo.bragagni |
probably |
# |
Jun 11th 2021, 09:05 |
paolo.bragagni |
hihi |
# |
Jun 11th 2021, 09:03 |
kevin.pfeifer |
in your JS code? |
# |
Jun 11th 2021, 09:01 |
paolo.bragagni |
where I have to see? |
# |
Jun 11th 2021, 09:01 |
paolo.bragagni |
my ajax call to controller is not fired |
# |
Jun 11th 2021, 08:34 |
kevin.pfeifer |
ndm is currently in the process of updating the friendsofcake/boostrap-ui plugin to bootstrap 5 https://github.com/FriendsOfCake/bootstrap-ui/pull/350 Maybe you can find something usefull there |
# |
Jun 11th 2021, 08:32 |
slackebot |
`'buttonToolbar' => '<div class="btn-toolbar{{attrs.class}}"{{attrs}}>{{content}}</div>',` `'fancyFileInput' => '{{fileInput}}<div class="input-group"><div class="input-group-btn">{{button}}</div>{{input}}</div>'` `];` `?>` |
# |
Jun 11th 2021, 08:32 |
slackebot |
`'inputGroupEnd' => '{{append}}</div>',` `'inputGroupAddons' => '<span class="input-group-addon">{{content}}</span>',` `'inputGroupButtons' => '<span class="input-group-btn">{{content}}</span>',` `'helpBlock' => '<p class="help-block">{{content}}</p>',` `'buttonGroup' => '<div class="btn-group{{attrs.class}}"{{attrs}}>{{content}}</div>',` |
# |
Jun 11th 2021, 08:32 |
slackebot |
class="form-group">{{submitContainerHorizontalStart}}{{content}}{{submitContainerHorizontalEnd}}</div>',` `'submitContainerHorizontal' => '<div class="form-group"><div class="{{inputColumnOffsetClass}} {{inputColumnClass}}">{{content}}</div></div>',` `'inputGroup' => '{{inputGroupStart}}{{input}}{{inputGroupEnd}}',` `'inputGroupStart' => '<div class="input-group">{{prepend}}',` |
# |
Jun 11th 2021, 08:32 |
slackebot |
name="{{name}}" value="{{value}}"{{attrs}}>',` `'inlineRadioWrapper' => '{{label}}',` `'inlineRadioNestingLabel' => '{{hidden}}<label{{attrs}} class="radio-inline">{{input}}{{text}}</label>',` `'textarea' => '<textarea name="{{name}}" class="form-control{{attrs.class}}" {{attrs}}>{{value}}</textarea>',` `'submitContainer' => '<div |
# |
Jun 11th 2021, 08:32 |
slackebot |
name="{{name}}[]" multiple="multiple" class="form-control{{attrs.class}}" {{attrs}}>{{content}}</select>',` `'radio' => '<input type="radio" name="{{name}}" value="{{value}}"{{attrs}}>',` `'radioWrapper' => '<div class="radio">{{label}}</div>',` `'radioContainer' => '<div class="form-group">{{content}}</div>',` `'inlineRadio' => '<input type="radio" |
# |
Jun 11th 2021, 08:32 |
slackebot |
`'optgroup' => '<optgroup label="{{label}}"{{attrs}}>{{content}}</optgroup>',` `'select' => '<select name="{{name}}" class="form-control{{attrs.class}}" {{attrs}}>{{content}}</select>',` `'selectColumn' => '<div class="col-md-{{columnSize}}"><select name="{{name}}" class="form-control{{attrs.class}}" {{attrs}}>{{content}}</select></div>',` `'selectMultiple' => '<select |