Log message #4098358

# At Username Text
# 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",
# Nov 23rd 2017, 05:32 admad @voycey make sure you are using latest/recent core
# Nov 23rd 2017, 03:00 voycey Ive just upgraded phpunit to version 6 but am getting a ton of errors for basic tests - is there anything I should know with it and cake?
# Nov 23rd 2017, 01:11 slackebot2 language to the one extracted from the url. This results in title field from the attributes table being treated as if it were in another language not the one specified on app.php. How do I correctly tell my app, that if the current language is latvian, take title from the attributes table, but if it is another language, take it from the attributes_i18n table?
# Nov 23rd 2017, 01:11 maris Wait, I think i don't quite understand how translations work. Currently I have attributes table, that has a title field with content in Latvian language. I also have a attributes_18n table that holds the title field values in other languages, for example, english. So in app.php the 'defaultLocale' => 'lv' I have a middleware that detects the chosen language from url and sets it using I18n::setLocale. But what this does is change the default
# Nov 23rd 2017, 00:20 maris Hi! I hope someone can help me with translations. I have a model called "Attribute" that has translations enabled. This model is associated with model "Product". When I request a certain product and include attribute in "contain", the attribute returned is in default language rather than the one currently set. Is this the expected behaviour?
# Nov 22nd 2017, 23:43 d-fens hey why are only my css files not cached but laoded on every request
# Nov 22nd 2017, 22:50 raul338 no, firt try with a real file
# Nov 22nd 2017, 22:37 joopp if i left empty the $path $file = $this->validateFile(); this still do something
# Nov 22nd 2017, 22:36 joopp from your link : $file = $this->validateFile($path);
# Nov 22nd 2017, 22:31 joopp okey and if the path is wrong the file will never exist