# |
Jul 6th 2017, 08:51 |
jarard01 |
using form templates how can I add different id's to a form group |
# |
Jul 6th 2017, 08:40 |
juststeveking |
Are ROutes also cached with cake2 |
# |
Jul 6th 2017, 08:36 |
neon1024 |
Unless you’re writing an integration test, I suppose, which might rely on global state |
# |
Jul 6th 2017, 08:36 |
neon1024 |
Plus, it would mean you’re not really doing unit testing, because you’re using side effects from the test |
# |
Jul 6th 2017, 08:35 |
neon1024 |
If you change global state for a test, you’ll encounter all kinds of problems in your test suite |
# |
Jul 6th 2017, 08:35 |
neon1024 |
I wouldn’t set your whole app’s datetime for a test, I’d mock out those parts which need the time and set it manually in the test |
# |
Jul 6th 2017, 08:34 |
glanceded |
date --set="1 JAN 2017 10:00:00" ? |
# |
Jul 6th 2017, 08:34 |
neothermic |
@neon1024 ^^ it can timetravel :) |
# |
Jul 6th 2017, 08:34 |
kareylo |
Just mock ? |
# |
Jul 6th 2017, 08:34 |
birdy247 |
Chronos::setTestNow(Chronos::now()); |
# |
Jul 6th 2017, 08:34 |
birdy247 |
it does :) |
# |
Jul 6th 2017, 08:34 |
neon1024 |
@neothermic It actually isn’t, as it’s immutable :P |
# |
Jul 6th 2017, 08:34 |
birdy247 |
Ah |
# |
Jul 6th 2017, 08:34 |
kareylo |
Oh. |
# |
Jul 6th 2017, 08:33 |
birdy247 |
I mean so the entrie app thinks today is 1st jan |
# |
Jul 6th 2017, 08:33 |
neothermic |
Chronos is allowed to time travel :P |
# |
Jul 6th 2017, 08:33 |
kareylo |
https://book.cakephp.org/3.0/en/chronos.html |
# |
Jul 6th 2017, 08:33 |
kareylo |
Sorry, french version :') |
# |
Jul 6th 2017, 08:33 |
kareylo |
https://book.cakephp.org/3.0/fr/chronos.html |
# |
Jul 6th 2017, 08:32 |
kareylo |
@birdy247 Yes, it's possible, checl Chronos doc |
# |
Jul 6th 2017, 08:32 |
birdy247 |
in my app |
# |
Jul 6th 2017, 08:32 |
birdy247 |
lol |
# |
Jul 6th 2017, 08:32 |
neon1024 |
If you figure it out @birdy247 let me know, so I can write down this weeks Lotto numbers! ;) |
# |
Jul 6th 2017, 08:32 |
kareylo |
Bubba `__('text')` ? |
# |
Jul 6th 2017, 08:32 |
birdy247 |
is it possible? |
# |
Jul 6th 2017, 08:32 |
birdy247 |
Im doing some testing and wanted to set the current time to 1st Jan 2017 10:00 |
# |
Jul 6th 2017, 08:31 |
Bubba |
Hey, got question about crud-view from friendsofcake. Can i somehow translate field titles other way than through $action->config('scaffold.field_settings', ...)? |
# |
Jul 6th 2017, 08:31 |
neothermic |
*panics* |
# |
Jul 6th 2017, 08:30 |
kareylo |
So, end of 2017 or begining of 2018 :slightly_smiling_face: |
# |
Jul 6th 2017, 08:30 |
kareylo |
Thanks, was looking for this page |
# |
Jul 6th 2017, 08:30 |
neon1024 |
On a more serious note -> https://bakery.cakephp.org/2017/06/23/upcoming-cakephp-roadmap.html |
# |
Jul 6th 2017, 08:29 |
kareylo |
Would be great ! But I know it will be in a long time from now ^^' |
# |
Jul 6th 2017, 08:29 |
neon1024 |
Tomorrow! #rumormill |
# |
Jul 6th 2017, 08:28 |
kareylo |
Is there any ETA for v4 ? |
# |
Jul 6th 2017, 08:28 |
juststeveking |
Well it appears that as it! |
# |
Jul 6th 2017, 08:28 |
dakota |
Try that |
# |
Jul 6th 2017, 08:28 |
juststeveking |
maybe if I purge redis? |
# |
Jul 6th 2017, 08:27 |
juststeveking |
`CACHE_DRIVER=Redis` |
# |
Jul 6th 2017, 08:27 |
dakota |
Then I don’t know :S |
# |
Jul 6th 2017, 08:27 |
juststeveking |
`CACHE_DISABLED=1` |
# |
Jul 6th 2017, 08:26 |
juststeveking |
Cache is diabled in my `.en filev` |