Log message #4213134

# At Username Text
# Nov 13th 2019, 00:04 brian.french @dereuromark I created a plugin that interacts with Jira so I could list Versions, and Open Issues within the admin section of my apps. I published it to packagist. What category would that fall under in the README?
# Nov 12th 2019, 23:49 challgren !help
# Nov 12th 2019, 23:45 challgren Anyone know who runs @cakebot on IRC?
# Nov 12th 2019, 23:36 slackebot1 !awesome
# Nov 12th 2019, 23:36 slackebot1 Command sent from Slack by dereuromark:
# Nov 12th 2019, 23:36 brian.french Is there a place where users can publish plugins? I know it used to be the Bakery, but that doesn't seem to be updated anymore.
# Nov 12th 2019, 19:22 challgren @jotpe its more like ``` 'engine' => [ 'className' => 'CakePdf.WkHtmlToPdf', 'binary' => '/usr/local/bin/wkhtmltopdf', 'options' => [ 'print-media-type' => false, 'outline' => true, 'dpi' => 96 ], ], ```
# Nov 12th 2019, 18:28 alexmax how did you folks manage to completely switch out the application stack in 3.3 while keeping backwards compatibility? I'm just polishing off our migration to the new application/middleware stack and the changes are so far-reaching that I'm honestly very impressed that our site continued to work flawlessly on the old stack.
# Nov 12th 2019, 16:15 Martin` ah ok :)
# Nov 12th 2019, 16:13 admad @martin he's using the paginator for sorting only :)
# Nov 12th 2019, 15:57 martin no pagination needed when you do that?
# Nov 12th 2019, 15:57 martin limit to 99999999? why would you limit on that? :P
# Nov 12th 2019, 15:54 pieceof i bet yes, atomic to false otherwise atomic`: If true (default), will attempt to save all records in a single transaction. (cake2)
# Nov 12th 2019, 15:48 peter349 $this->saveMany($orders) goes through before save for each entry?
# Nov 12th 2019, 15:47 peter349 Hi
# Nov 12th 2019, 15:47 pieceof $this->paginate = [ 'limit' => 99999999999, 'maxLimit' => 99999999999 ]; yeeehaa .P
# Nov 12th 2019, 15:39 pieceof cant find a way to set pagination to give all results in one page, i just want to be able to sort,direction,limit, some times shows only 1 record , others ~20, limit => -1, limit => 'all' dont works
# Nov 12th 2019, 14:27 josbeir it should return correct in beforeRender etc
# Nov 12th 2019, 14:27 josbeir @massimoi that function will return the path but not in the initialize() callback
# Nov 12th 2019, 14:25 slackebot1 https://github.com/dereuromark/cakephp-tools/blob/master/docs/I18n/I18n.md or https://github.com/ADmad/cakephp-i18n
# Nov 12th 2019, 14:25 tobse @massimoi In Cake3 themes are handled like plugins (https://book.cakephp.org/3/en/views/themes.html). Sorry but I don't remember how this was handled in Cake2. I think I even didn't use them. For calling separate template-files depending on your locale you could render a specific template in your controller (https://book.cakephp.org/3/en/controllers.html#rendering-a-specific-template). Or take a look at
# Nov 12th 2019, 14:12 pieceof k, ty sir
# Nov 12th 2019, 14:11 admad @pieceof if you want to be able to use to order using `?sort=tile` for e.g. then yes `Paginator` can do that for you
# Nov 12th 2019, 14:08 admad if you use foc/search plugin it will handle it for you :slightly_smiling_face:
# Nov 12th 2019, 14:08 pieceof do i need to load paginator in order to get orderable api json response?
# Nov 12th 2019, 14:07 devito thanks
# Nov 12th 2019, 14:07 devito ill give it a shot
# Nov 12th 2019, 14:06 devito mm
# Nov 12th 2019, 14:06 pieceof i use to set a default if are not set, (first page load) (cake2)
# Nov 12th 2019, 14:04 devito do I need to handle the query params in the controller afterwards?
# Nov 12th 2019, 14:03 admad `$this->Paginator->options(['url' => ['?' => $this->request->getQuery()]])`
# Nov 12th 2019, 14:01 devito I hae a form i use to search which goes to a results page with pagination. how do i persist the search params between pages?
# Nov 12th 2019, 13:17 conehead Okay thank you. Will have to look for it recursively then
# Nov 12th 2019, 13:17 massimoi this is what I did in Cake2, but how can I get the path of the view in Cake3? If I do $this->viewBuilder()->getTemplatePath( ); I always get a empty string
# Nov 12th 2019, 13:16 admad @conehead then there's no way to get all the children in a single query
# Nov 12th 2019, 13:16 slackebot1 array_unshift($path,$locale); }
# Nov 12th 2019, 13:16 massimoi @tobse not sure to have understood... what I see is localization, meaning I can edit single strings in the page. But how do I choose a different .ctp when the language is different? if ($this->theme) { $theme_path = DS . 'Themed' . DS . $this->theme ; } if ($locale andand file_exists(APP . 'View' . $theme_path . DS . $this->viewPath . DS . $locale .DS. implode('/', $path) . $this->ext )) {
# Nov 12th 2019, 13:15 conehead Ah. Seems to be for Tree-Behavior. I am not using that behavior...just threaded data :S
# Nov 12th 2019, 13:15 conehead I will have a look thanks. Never have seen `for`
# Nov 12th 2019, 13:14 admad `->find('children', [for =>id])->find('threded')`
# Nov 12th 2019, 13:13 conehead Which does not seem to be a nice solution :P