Log message #4157015

# At Username Text
# Jul 9th 2018, 14:11 neon1024 I have three levels of belongsTo associations, Companies > Websites > Campaigns. Does anyone have any idea how I can output the data in a hierarchical way? Like this? https://github.com/dbushell/Nestable#usage Or just three nested loops?
# Jul 9th 2018, 14:09 lorenzo here: http://www.bravo-kernel.com/2015/04/how-to-build-a-cakephp-3-rest-api-in-minutes/
# Jul 9th 2018, 14:04 sheraliqureshi.mhtech how to make restfull api in caka php any video or link?
# Jul 9th 2018, 14:04 sheraliqureshi.mhtech i need help
# Jul 9th 2018, 14:03 sheraliqureshi.mhtech i m new on cake php
# Jul 9th 2018, 13:27 iqu anyone ever done smart card authentication?
# Jul 9th 2018, 13:19 itmpls i have a site in 3.6 and 3.5, with the same invalid class declaration in config/routes.php, and both having ErrorHandlerMiddleware loaded in src/Application, 3.5 is trying to display the exception from ErrorHandler while the other from ErrorHandlerMiddleware. anyone know where cake detects which to use? debug is true
# Jul 9th 2018, 12:48 lubos Just used `sumOf` which works, but the reduce should to imo, at least looks similar to example in doc
# Jul 9th 2018, 12:45 lubos File uploaded https://cakesf.slack.com/files/UBEC23Z6H/FBLE4THFA/resultset_reduce.txt / https://slack-files.com/T053DPNCM-FBLE4THFA-5d273feee8 - Any idea why I can't get what is in dd at line 11 (inside reduce callback function)?
# Jul 9th 2018, 12:15 hmic but obviously i did not change the configured setting in code anywhere
# Jul 9th 2018, 12:15 hmic i think thats in the wild like this...
# Jul 9th 2018, 12:14 hmic :Ü*ÖÄ;:_,.-ö
# Jul 9th 2018, 11:34 neon1024 Just in case you’re using it yourself ;)
# Jul 9th 2018, 11:34 neon1024 hmic -> https://gist.github.com/hmic/2fd01903d64c3c3d769aa85aa9ed0d08#file-containedmodelslistener-php-L57
# Jul 9th 2018, 11:31 neon1024 No, I’ve had to output a string, an deal with the string using regex
# Jul 9th 2018, 11:00 hippo Does PHP DateInterval support it?
# Jul 9th 2018, 10:56 neon1024 Does the Cake time objects support DateInterval formatting which ignores when parts are empty?
# Jul 9th 2018, 10:45 slackebot4 '_ext' => null, 'isAjax' => false ] ] ```
# Jul 9th 2018, 10:45 hippo ``` Error: A route matching "array ( 'prefix' => false, 'controller' => 'Users', 'action' => 'login', 'plugin' => 'Queue', '_ext' => NULL, )" could not be found. ``` ``` [ '_base' => '', '_port' => null, '_scheme' => 'https', '_host' => 'local.datatel.com.au', 'params' => [ 'controller' => 'Queue', 'pass' => [], 'action' => 'index', 'plugin' => 'Queue', 'prefix' => 'admin', '_matchedRoute' => '/admin/queue/:controller',
# Jul 9th 2018, 10:43 hippo I'm using https://github.com/dereuromark/cakephp-queue .. it's the admin prefix route and when I comment out the 'prefix' in the loginAction it works..
# Jul 9th 2018, 10:42 hippo when I set my authcomponents `loginAction` to the following my plugins route isn't loading. Anyone seen this before? ``` 'loginAction' => [ 'prefix' => false, 'controller' => 'Users', 'action' => 'login', ], ```
# Jul 9th 2018, 10:27 neon1024 hmic, Great okay :slightly_smiling_face:
# Jul 9th 2018, 10:23 hmic neon1024: the search path for that listener is src/Listener/ btw.
# Jul 9th 2018, 10:23 josbeir never used the Search plugin
# Jul 9th 2018, 10:22 jhob Have just upgraded 3.3.16 to 3.6.7 and getting error ```The "_cake_model_" cache configuration does not exist.```. Except that it does in app.php: ```'_cake_model_' => [ 'className' => 'File', 'prefix' => 'myapp_cake_model_', 'path' => CACHE . 'models/', 'serialize' => true, 'duration' => '+2 minutes', 'url' => env('CACHE_CAKEMODEL_URL', null), ],``` Any ideas?
# Jul 9th 2018, 10:22 josbeir i dont use Search.Prg
# Jul 9th 2018, 10:22 neon1024 As I end up with `/admin/users?role_id=1`
# Jul 9th 2018, 10:22 hmic josbeir: i dont see that. i think its a best practise (with prg)
# Jul 9th 2018, 10:22 neon1024 That’s what the Prg is for
# Jul 9th 2018, 10:21 josbeir its just.. POST for search is just a asking for UX issues
# Jul 9th 2018, 10:21 hmic nothing gets saved there and tampering with the to delete ids shouldnt be a problem
# Jul 9th 2018, 10:21 neon1024 It’s in my admin, so I’m not totally uncomfortable with this sidestep
# Jul 9th 2018, 10:21 hmic jsut turn securitz off for the index action, sure
# Jul 9th 2018, 10:21 neon1024 Hah, good point hmic!
# Jul 9th 2018, 10:21 neon1024 `$this->Security->setConfig('unlockedActions', ['index']);`
# Jul 9th 2018, 10:20 hmic use Grg instead of Prg :p
# Jul 9th 2018, 10:20 neon1024 If it’s more code than
# Jul 9th 2018, 10:20 josbeir just disable the security stuff on that form
# Jul 9th 2018, 10:20 josbeir yep i faced that too but thats fixable
# Jul 9th 2018, 10:19 neon1024 `?_method=POSTandemail=androle_id=2andjob_title=and_method=POSTand_Token%5Bfields%5D=a6fd62a38403f1066acb49a7d63299b8d6bef5ae%253Aand_Token%5Bunlocked%5D=and_Token%5Bdebug%5D=%255B%2522%255C%252Fadmin%255C%252Fusers%255C%252Fdelete%255C%252F1%2522%252C%255B%255D%252C%255B%255D%255D`
# Jul 9th 2018, 10:19 neon1024 I don’t like using GET, even with Search.Prg, as my url gets garbled