# |
Jul 20th 2017, 15:34 |
dereuromark |
As long as there are websites on this planet outputting flash messages cake will always have a Flash messenger tooling :slightly_smiling_face: |
# |
Jul 20th 2017, 15:34 |
jeremyharris |
hehe |
# |
Jul 20th 2017, 15:33 |
dereuromark |
Only I typed with less beer :P |
# |
Jul 20th 2017, 15:33 |
jeremyharris |
:) |
# |
Jul 20th 2017, 15:33 |
dereuromark |
LOOOL |
# |
Jul 20th 2017, 15:33 |
jeremyharris |
where did you read that? |
# |
Jul 20th 2017, 15:33 |
dereuromark |
where did you read that? |
# |
Jul 20th 2017, 15:32 |
shuyi |
hey guys, I read that Cake 3 decided to remove $this->Flash from Controller, so what is the best way to import it ? thanks |
# |
Jul 20th 2017, 15:26 |
inoas |
https://gist.github.com/inoas/a7b435a28616231f304fe6c305245f35 :) updated now that will also shrink my code |
# |
Jul 20th 2017, 15:09 |
inoas |
hm controller is using + ... $this->viewVars = $data + $this->viewVars; |
# |
Jul 20th 2017, 15:07 |
inoas |
well admad thanks for pointing out how easy it is... now with this adding more serialized variables in beforeRender etc works https://gist.github.com/inoas/a7b435a28616231f304fe6c305245f35 |
# |
Jul 20th 2017, 15:07 |
jeremyharris |
heh no worries |
# |
Jul 20th 2017, 15:06 |
eBugg |
I owe you one |
# |
Jul 20th 2017, 15:06 |
eBugg |
jeremyharris: one of the guys copy/pasted old non-sense js at the end of the template |
# |
Jul 20th 2017, 15:03 |
jeremyharris |
eBugg glad to help |
# |
Jul 20th 2017, 15:03 |
eBugg |
jeremyharris: I think I was able to track it down. Js indeed as you said. Thank you for the debug($this->Form) stuff. I didn't know about it. |
# |
Jul 20th 2017, 15:01 |
jeremyharris |
manually creating the session means you need to pass config etc |
# |
Jul 20th 2017, 15:01 |
shuyi |
I see , thanks |
# |
Jul 20th 2017, 15:01 |
jeremyharris |
Cake\Network\Session — although generally you want to use the existing object on the request |
# |
Jul 20th 2017, 15:00 |
shuyi |
quick question ... what is the use statement for Session in Cake 3 ? |
# |
Jul 20th 2017, 14:57 |
eBugg |
there some jQuery hanging at the beggining of the .ctp |
# |
Jul 20th 2017, 14:56 |
jeremyharris |
so that tells you that JS is likely disabling it |
# |
Jul 20th 2017, 14:55 |
eBugg |
no disabled |
# |
Jul 20th 2017, 14:55 |
eBugg |
debug give this: '<div class="input number"><label for="OperacionVentaPrecioDirectoEuro">Precio Directo Euro</label><input name="data[OperacionVenta][precio_directo_euro]" step="0.000001" type="number" id="OperacionVentaPrecioDirectoEuro"/></div>' |
# |
Jul 20th 2017, 14:53 |
jeremyharris |
eBugg the reason I ask for debugging directly from the PHP template/view is to be certain nothing else is fiddling with it (like JS) |
# |
Jul 20th 2017, 14:53 |
eBugg |
this is a plain cakephp installation |
# |
Jul 20th 2017, 14:52 |
eBugg |
jeremyharris: let me try that. My only tools are vim and Firefox |
# |
Jul 20th 2017, 14:51 |
jeremyharris |
sorry, you’re using input. debug($this->Form->input(‘…’)) |
# |
Jul 20th 2017, 14:51 |
eBugg |
what would you put in the Form->control() ? the controller or the field ? |
# |
Jul 20th 2017, 14:51 |
jeremyharris |
eBugg okay. again, are you debugging directly from PHP or pasting from dev tools? also, have you checked for custom templates yet? |
# |
Jul 20th 2017, 14:50 |
eBugg |
jeremyharris: I have some js but nothing like .disabled |
# |
Jul 20th 2017, 14:50 |
admad |
adios |
# |
Jul 20th 2017, 14:49 |
admad |
the cake is a lie! |
# |
Jul 20th 2017, 14:49 |
jeremyharris |
fakephp? |
# |
Jul 20th 2017, 14:49 |
eBugg |
admad: what if it were FAKE cakephp ?? |
# |
Jul 20th 2017, 14:49 |
admad |
0wned! |
# |
Jul 20th 2017, 14:48 |
jeremyharris |
(I have no defense :P ) |
# |
Jul 20th 2017, 14:48 |
jeremyharris |
hey now |
# |
Jul 20th 2017, 14:48 |
admad |
if you are american it could be the russians |
# |
Jul 20th 2017, 14:48 |
jeremyharris |
better yet, debug($this->Form->control(‘…’)) to see exactly what it’s outputting |
# |
Jul 20th 2017, 14:47 |
jeremyharris |
and JS |