Log message #4184534

# At Username Text
# Apr 25th 2019, 11:55 mrgrimpy Will do
# Apr 25th 2019, 11:55 mrgrimpy Yes I am
# Apr 25th 2019, 11:55 admad that's assuming you are using extension parsing in router
# Apr 25th 2019, 11:53 admad then just check `$this->request->getParam('_ext')` and throw `NotFoundException` if the value is not `'json'`.
# Apr 25th 2019, 11:52 mrgrimpy Only for two specific actions
# Apr 25th 2019, 11:52 admad you want that throughout the site or just for particular controller/action?
# Apr 25th 2019, 11:50 slackebot was told to try making a custom routes class but I feel there must be a more «CakePHP way».
# Apr 25th 2019, 11:50 mrgrimpy @admad I am sorry if you felt I put some blame on your I18n plugin yesterday when I was asking questions on CakePHP routing. I thank you for it. It works really well for our needs. Since you're a specialist on routes. Could you point me towards what would be the best course of action if I wanted to throw 404s for https://www.example.com but respond with json for https://www.example.com.json? I couldn't find anything in the documentation. I
# Apr 25th 2019, 11:46 admad @mrgrimpy please don't PM for support issues, just ask in here
# Apr 25th 2019, 11:20 slackebot Action: neon1024 goes back to the corner
# Apr 25th 2019, 11:20 neon1024 :point_up: Yeah, a result set of `0` :face_palm:
# Apr 25th 2019, 11:19 neon1024 Ah, perhaps my find didn’t find any records :thinking_face:
# Apr 25th 2019, 11:18 neon1024 My shell sets the fields as dirty, and I save them, but they mutator doesn’t seem to fire. Any thoughts?
# Apr 25th 2019, 11:18 neon1024 I need to run a shell to write new field values. I’ve setup an entity mutator to write the new fields, as they’re derived.
# Apr 25th 2019, 11:17 neon1024 In other news
# Apr 25th 2019, 11:07 neon1024 I guess it all depends how much functionality you want to implement, how much time you have and what your budget is if there is one
# Apr 25th 2019, 11:06 neon1024 Perhaps you’d need to use like a remember me cookie for that
# Apr 25th 2019, 11:06 neon1024 As if I logged in, and the login method marked my user as logged in, if I close the browser I’d lose my session
# Apr 25th 2019, 11:05 neon1024 As it would make logging out more important, and it would also mean session resumption would be an issue
# Apr 25th 2019, 11:05 neon1024 ..but I’d be a bit worried about how to log someone out
# Apr 25th 2019, 11:05 neon1024 You’d have to store something in persistant storage for me
# Apr 25th 2019, 11:02 thomas078 What is the easiest way to prevent same username to log in multiple times 2 at same time?
# Apr 25th 2019, 10:05 egalles thx i was turning mad :)
# Apr 25th 2019, 10:03 egalles ok i see $this->Flash->info(sprintf('<b>%s</b> %s', h($highlight), h($message)), ['escape' => false]);
# Apr 25th 2019, 10:03 egalles maybe this ? $this->Flash->error('your_text'. <a href="'your_url"></a>',"escape=>false"); ?
# Apr 25th 2019, 10:01 dereuromark any HTML is then possible
# Apr 25th 2019, 10:01 dereuromark escape=>false
# Apr 25th 2019, 10:01 egalles Hi everybody, is there a way to put a link in a flash message ?
# Apr 25th 2019, 09:54 uwe.flaig @dereuromark thanks a bunch!
# Apr 25th 2019, 09:05 dereuromark if you configure it you can retain the old % behavior/usage.
# Apr 25th 2019, 09:05 dereuromark I think it comes from aura/intl dependency: https://github.com/cakephp/cakephp/blob/master/composer.json#L35
# Apr 25th 2019, 09:03 martin @uwe.flaig when I check the internet is is used by multiple things, not only by cakephp, but don’t know if it is a part of the standard
# Apr 25th 2019, 08:58 dereuromark but we recently changed the default to not cache at all, since this is often not necessary
# Apr 25th 2019, 08:57 dereuromark they dont cache, should be more the other way around if anything
# Apr 25th 2019, 08:57 uwe.flaig https://en.wikipedia.org/wiki/Gettext but as far as I can see cakephp 3.x replaced the %s placeholders with curly brackets "{0}" Is this part of the gettext standard? Am I missing something? The wiki article is not mentioning curly brackets in any shape or form
# Apr 25th 2019, 08:57 martin Why do routes cache when debug is enabled? :P
# Apr 25th 2019, 08:55 uwe.flaig Hello there! I have a question about cakephp 3.x localization https://book.cakephp.org/3.0/en/core-libraries/internationalization-and-localization.html#language-files Cakephp is using the gettext standard
# Apr 25th 2019, 07:47 charolastra dunno, seems like it
# Apr 25th 2019, 07:46 neon1024 Morning all :wave:
# Apr 25th 2019, 07:46 neon1024 I guess your routes were cached then right?
# Apr 25th 2019, 07:46 neon1024 Super!