Log message #4174614

# At Username Text
# Jan 22nd 2019, 14:56 gareth.ellis also things like 403 errors, I'd like to log them but not have them in the main error log
# Jan 22nd 2019, 14:55 gareth.ellis and if a third party service goes down, this creates a lot of noise in the main error.log file
# Jan 22nd 2019, 14:55 gareth.ellis e.g. HTTP calls
# Jan 22nd 2019, 14:55 gareth.ellis in various places in the app we log caught errors
# Jan 22nd 2019, 14:55 gareth.ellis added a public method `logException(Throwable $e)`
# Jan 22nd 2019, 14:54 neon1024 You’d want to make sure they were configured to be logged and not turned off in the php settings then I guess
# Jan 22nd 2019, 14:54 gareth.ellis i've got an extended version of the default exception handler `AppErrorHandler`
# Jan 22nd 2019, 14:54 neon1024 Not quite sure where you’d hook the exception handler in cake 2 though, it’s been a while
# Jan 22nd 2019, 14:54 gareth.ellis logging, not rendering
# Jan 22nd 2019, 14:54 neon1024 I don’t see why not @gareth.ellis would just need to write an exception renderer to do that
# Jan 22nd 2019, 14:48 gareth.ellis Anyone have any idea if you can configure Cake 2 to log exceptions to different streams depending on the type?
# Jan 22nd 2019, 14:38 neon1024 :point_up: Difference between empty and null ;)
# Jan 22nd 2019, 14:37 neon1024 https://pbs.twimg.com/media/C7ojxbSVAAEX9Bt.jpg
# Jan 22nd 2019, 14:37 jhall well that's true @neon1024 haha
# Jan 22nd 2019, 14:37 ricksaccous based on type
# Jan 22nd 2019, 14:36 ricksaccous in 3.7 allowWhateverEmpty
# Jan 22nd 2019, 14:36 neon1024 NULL and ‘’ are not integers ;)
# Jan 22nd 2019, 14:36 jhall oh weird
# Jan 22nd 2019, 14:36 ricksaccous @jhall yeah you pretty much have to specify allowEmpty()
# Jan 22nd 2019, 14:36 neon1024 Yep
# Jan 22nd 2019, 14:36 jhall oh so adding a rule as isInteger also assumes you want it to be required?
# Jan 22nd 2019, 13:25 madbbb Hello! What is the best way to use language param in router? I would like to accept /de/posts/1 urls with en language by default
# Jan 22nd 2019, 10:27 neon1024 Perhaps someone in the future can change it :slightly_smiling_face:
# Jan 22nd 2019, 10:27 neon1024 That’ll be @markstory who’ll wake up in about 2h 30m
# Jan 22nd 2019, 10:22 thomas.meier I just put it here in hope it will hit the person in charge: The lastest release notification has a typo in the title. Probably copy-paste from the old version, maybe someone up to fix it? https://bakery.cakephp.org/2019/01/21/cakephp_373_released.html
# Jan 22nd 2019, 10:02 neon1024 Personally I would not recommend using Fallback routing in your project
# Jan 22nd 2019, 10:02 neon1024 Automatic routing will only exist if you include the FallbackRoutes
# Jan 22nd 2019, 10:02 neon1024 fingoweb, That’s exactly how routing works
# Jan 22nd 2019, 10:01 neon1024 @spriz I think it’s still `CHAR(32)`
# Jan 22nd 2019, 10:01 neon1024 Morning all
# Jan 22nd 2019, 09:59 fingoweb hey, I have a question, I need some redirect module. Is it possible in Cake to auto redirect from auto routes (/controller/action) to predefined routes (defined by $routes->connect) if exists?
# Jan 22nd 2019, 09:57 spriz Or `VARBINARY` :P
# Jan 22nd 2019, 09:55 spriz Does Cake support using `BINARY(16)` for UUIDs?
# Jan 22nd 2019, 09:55 spriz I think you should extend the existing twig template if possible if it’s in vendor/ , and add it there :slightly_smiling_face:
# Jan 22nd 2019, 08:45 marwan.salim @spriz do you mean just add the method to existing `*.twig` file ? i.e `add.twig` . Is it the right way ? :slightly_smiling_face:
# Jan 22nd 2019, 08:42 spriz @marwan.salim I’d guess you need to extend the existing controllers if you want to add stuff to them :slightly_smiling_face:
# Jan 22nd 2019, 08:23 slackebot1 null) { ${{ singularName }} = $this->{{ currentModelName }}->find()->where(['id' => $id])->firstOrFail(); $this->set(compact({{ compact|join(', ')|raw }})); } When I bake this method not exist in my controller. How to resolve this? Thanks.
# Jan 22nd 2019, 08:23 marwan.salim Hi. I'm doing extended bake. How to add new method in existing bake controller ? In my case, I want to create a `history` method. I already added following file src/Template/Bake/Element/Controller/history.twig //below is the code inside history.twig {% set compact = ["'#{singularName}'"] %} /** * Change History method * * @param int|null $id User id. * @return void */ public function history($id =
# Jan 22nd 2019, 05:33 admad @akkaweb session exists only when using a webserver, not CLI
# Jan 22nd 2019, 03:09 challgren https://book.cakephp.org/3.0/en/development/sessions.html#accessing-the-session-object
# Jan 22nd 2019, 03:08 challgren No and if you are doing so your business logic is in the wrong places