# |
Nov 23rd 2017, 11:20 |
neon1024 |
`thus is fired in the same cycle as all Controller::beforeFilter events.` |
# |
Nov 23rd 2017, 11:20 |
neon1024 |
Read the docs you linked @birdy247 |
# |
Nov 23rd 2017, 11:14 |
acosonic |
is there some webmail client like rainloop, written in cakephp ? |
# |
Nov 23rd 2017, 11:11 |
dereuromark |
Maybe you have some custom widgets and database types in place? |
# |
Nov 23rd 2017, 11:11 |
dereuromark |
@lorenzo Do we have a proper solution around datetime inputs yet and timezone awareness, as well as dropdown vs input support? I am fighting here with this for months, and there is no real good solution yet. |
# |
Nov 23rd 2017, 11:09 |
birdy247 |
I wasnt sure how else the marshaler would get it |
# |
Nov 23rd 2017, 11:09 |
birdy247 |
just make it date.timezone ad date.date ? |
# |
Nov 23rd 2017, 11:08 |
lorenzo |
it does not have to be in a hidden input field, though |
# |
Nov 23rd 2017, 11:07 |
birdy247 |
@lorenzo I suppose its not, but it relies on a hidden attribute and make validation a little harder |
# |
Nov 23rd 2017, 11:06 |
birdy247 |
@admad http://crud.readthedocs.io/en/latest/actions/add.html#events |
# |
Nov 23rd 2017, 11:03 |
bernat |
Hi. Are Query objects reusable? I mean, can I change the query after executing it and execute it again? |
# |
Nov 23rd 2017, 10:55 |
lorenzo |
why is it clunky? |
# |
Nov 23rd 2017, 10:55 |
admad |
Crud events are different from core events |
# |
Nov 23rd 2017, 10:54 |
admad |
Because crud doesn't have any beforeFilter event. |
# |
Nov 23rd 2017, 10:22 |
birdy247 |
any ideas? |
# |
Nov 23rd 2017, 10:20 |
birdy247 |
If I die() just before it, it does die |
# |
Nov 23rd 2017, 10:20 |
birdy247 |
it never logs anything |
# |
Nov 23rd 2017, 10:20 |
birdy247 |
File uploaded https://cakesf.slack.com/files/U0T295QA3/F84JDG61Z/-.php / https://slack-files.com/T053DPNCM-F84JDG61Z-b64854d31c |
# |
Nov 23rd 2017, 10:19 |
birdy247 |
I am using the CRUD plugin for an API |
# |
Nov 23rd 2017, 10:01 |
birdy247 |
but seems a bit clunky |
# |
Nov 23rd 2017, 10:01 |
birdy247 |
this works |
# |
Nov 23rd 2017, 10:01 |
birdy247 |
then in my custom datatype, it has both values |
# |
Nov 23rd 2017, 10:01 |
birdy247 |
and passed in date[datetime] = "01/01/2017 10:00" date[timezone] = "Europe/London" |
# |
Nov 23rd 2017, 10:00 |
birdy247 |
I did create a new datatype |
# |
Nov 23rd 2017, 10:00 |
birdy247 |
Has anyone got any nifty ideas on allowing users to enter a datetime and also a timezone |
# |
Nov 23rd 2017, 09:07 |
chan |
finally, 404 not found page, well done! :slightly_smiling_face: thank all. |
# |
Nov 23rd 2017, 08:33 |
birdy247 |
Morning |
# |
Nov 23rd 2017, 08:31 |
d-fens |
is it currently not possible to have routes that any anonymous user can access when activating the cakedc/users plugin as 'bypassAuth' => true doesn't work? |
# |
Nov 23rd 2017, 08:25 |
slackebot2 |
give advice to me. thanks all. |
# |
Nov 23rd 2017, 08:25 |
chan |
i create 404 not found page with cakephp 2 by following link http://findnerd.com/list/view/How-to-make-custom-error-pages-in-cakephp/10516/ calling coding is ``` AdminAppController.php public function beforeFilter() { if ($this->request->is('mobile')) { // to return a 404 error throw new NotFoundException('Could not find that post'); } ``` why page is no show? only show => page can't be found (browser default page) if you know, please |
# |
Nov 23rd 2017, 05:36 |
voycey |
I do have my tests setup a different way but nothing that should kill it in my opinion |
# |
Nov 23rd 2017, 05:35 |
voycey |
hmm |
# |
Nov 23rd 2017, 05:34 |
admad |
latest core should work with phpunit 6 |
# |
Nov 23rd 2017, 05:34 |
voycey |
after downgrading phpunit to 5.x it all works again |
# |
Nov 23rd 2017, 05:34 |
voycey |
when I did the update |
# |
Nov 23rd 2017, 05:34 |
voycey |
it put it up to 3.5.6 |
# |
Nov 23rd 2017, 05:33 |
admad |
composer show cakephp/cakephp |
# |
Nov 23rd 2017, 05:33 |
voycey |
everything died a sad sad death |
# |
Nov 23rd 2017, 05:33 |
voycey |
I just had phpunit "*" and that |
# |
Nov 23rd 2017, 05:32 |
voycey |
is that enough? |
# |
Nov 23rd 2017, 05:32 |
voycey |
"cakephp/cakephp": "^3.0", |