Log message #4098254

# At Username Text
# Nov 22nd 2017, 19:37 d-fens is there already a plugin for that maybe?
# Nov 22nd 2017, 19:36 d-fens hi, have app up and running where on device fills a table and another should watch it for changes and display liek latest n entries, whats best way to get notifications without full page reloads?
# Nov 22nd 2017, 18:06 joopp i pass id and make request
# Nov 22nd 2017, 18:04 blackjccl from cakephp 3
# Nov 22nd 2017, 18:01 blackjccl Someone here has used pagination in a stored procedure
# Nov 22nd 2017, 17:59 blackjccl Hello community
# Nov 22nd 2017, 17:46 admad charking: if you have an old centos you might also have problems with outdated ICU libs when using cake 3
# Nov 22nd 2017, 17:46 frazr Anyone using Phinx Migrations here? :P somehow i cannot set default value for id's to my regular UUID() generation, has the new version added some changes ?
# Nov 22nd 2017, 17:42 sdevore all I can say is it will be worth it. https://github.com/dereuromark/cakephp-shim can help ease the transition and the update tools get you part way there, the model/orm part will be the hardest IMHO but well worth it if you are going to support this project long term
# Nov 22nd 2017, 17:38 charking Will it be hard to migrate from 2.2.2 to 3.5?
# Nov 22nd 2017, 17:37 charking sdevore: thanks, I think I'll use the "IUS Community Project" PHP 7 packages for CentOS so I can use CakePHP 3.5. IUS looks like a good project.
# Nov 22nd 2017, 16:58 saeideng but in cell
# Nov 22nd 2017, 16:57 saeideng I want something like `$this->layout = false;`
# Nov 22nd 2017, 16:56 saeideng >how I can stop to rendering in cell ? `die()` :)
# Nov 22nd 2017, 16:52 sdevore @charkling CakePHP 3.5 and greater requires PHP 5.6 http://php.net/supported-versions.php CakePHP should work on 5.3 and up I think
# Nov 22nd 2017, 16:51 saeideng how I can stop t rendering in cell ?
# Nov 22nd 2017, 16:48 charking svedore: The server is CentOS 7 (latest) and PHP 5.4.16 is the latest PHP from the package repositories. Maybe a newer PHP version is supported by CentOS, will check.
# Nov 22nd 2017, 16:44 neon1024 No, sorry, unclezoot nothing about that makes any sense.
# Nov 22nd 2017, 16:43 sdevore a server running php 5.4 would make me more nervous :O
# Nov 22nd 2017, 16:42 sdevore https://github.com/cakephp/cakephp/releases 2.10.5 released 2 days ago ;)
# Nov 22nd 2017, 16:42 charking sdevore: Thanks! Is 2.x still supported? (Does it get security fixes?)
# Nov 22nd 2017, 16:41 sdevore I think you are stuck on 2.x until you can get the server on a supported php version ;)
# Nov 22nd 2017, 16:41 charking The server has PHP 5.4.16.
# Nov 22nd 2017, 16:40 charking (I know nothing about CakePHP.)
# Nov 22nd 2017, 16:39 charking hello. Someone built a site using CakePHP 2.2.2 years ago, and I'm trying to get it up to date. Should I upgrade to 3.5? Or is there a still-supported 2.x branch?
# Nov 22nd 2017, 16:15 unclezoot using my own functions i would probably add a myfunction(..., and$msg = array()) to enable me to build up a diagnostic array so i have something to read when i inevitably return false - does that make any sense?
# Nov 22nd 2017, 16:15 unclezoot i want to refactor a lot of logic tests from my controller into my model and pass back human readable messages to the developer as there is a lot of variation on how this plugin can be used, alongside other plugins which may or not exist, which affects the overall logic. the controller is already getting quite large so im trying to move code into beforeMarshall/beforeSave/afterSave, and i dont want to use custom validation. if i were
# Nov 22nd 2017, 16:12 neon1024 Perhaps you’re looking for Log::debug() ?
# Nov 22nd 2017, 16:09 slackebot2 !xy
# Nov 22nd 2017, 16:09 slackebot2 Command sent from Slack by neon1024:
# Nov 22nd 2017, 16:09 neon1024 What are you trying to see?
# Nov 22nd 2017, 16:08 unclezoot how would you pass diagnostic messages from Table::afterSave() into your controller (to pass into debugkit) ? am i missing something obvious here?
# Nov 22nd 2017, 16:04 neon1024 Why can’t you use DebugKIt?
# Nov 22nd 2017, 15:58 unclezoot correction, developer friendly session messages which wont be shown once debug is turned off
# Nov 22nd 2017, 15:57 unclezoot user friendly session messages basically
# Nov 22nd 2017, 15:50 neon1024 To diagnose what exactly?
# Nov 22nd 2017, 15:45 unclezoot hi, is there a way of passing diagnostics messages back from beforeSave or beforeMarshall to the controller?
# Nov 22nd 2017, 15:11 neon1024 Ahh, I can create a new response and assign the json as the body :slightly_smiling_face:
# Nov 22nd 2017, 15:09 neon1024 Returning the response directly upsets Cake with `Controller actions can only return Cake\\Http\\Response or null.`
# Nov 22nd 2017, 15:08 neon1024 If I use `_serialize` Cake tries to json encode my json
# Nov 22nd 2017, 15:08 neon1024 `echo $response->body()` is getting me the string, but as `text/html`