Logs for #cakephp

Page 8 of 36,393, showing 100 records out of 3,639,222 total, starting on record 701, ending on 800

# At Username Text
# Nov 13th, 09:25 javier.villanueva I will not use js in very big tables
# Nov 13th, 09:22 pieceof :+1:
# Nov 13th, 09:22 javier.villanueva thanks!
# Nov 13th, 09:21 javier.villanueva ok no problem
# Nov 13th, 09:20 pieceof *appcontroller
# Nov 13th, 09:20 pieceof im not sure as im puzzling it too but a public paginator maybe in controller
# Nov 13th, 09:20 javier.villanueva do you set it in appController?
# Nov 13th, 09:19 javier.villanueva yes thanks xD
# Nov 13th, 09:19 pieceof what you want php or js pagination you have to choose
# Nov 13th, 09:18 pieceof go pro
# Nov 13th, 09:17 javier.villanueva mm I check it xD
# Nov 13th, 09:17 pieceof thats nap
# Nov 13th, 09:16 pieceof xD
# Nov 13th, 09:16 javier.villanueva I must specify limit and maxLimit to 100000
# Nov 13th, 09:16 pieceof cake paginator defaults to 20, tweak it in app controller
# Nov 13th, 09:15 javier.villanueva but anyway, if I disabled datatable... only show by default 20 records
# Nov 13th, 09:14 pieceof in datatables use limit all
# Nov 13th, 09:13 javier.villanueva Ok, I understand.... Im using datatable and is limiting for each page its total
# Nov 13th, 09:10 javier.villanueva or I have any error
# Nov 13th, 09:09 javier.villanueva for page and for all list
# Nov 13th, 09:09 pieceof but theres a limit and a maxLimit for each page
# Nov 13th, 09:09 javier.villanueva I can remove this limit in paginate function for each controller
# Nov 13th, 09:09 javier.villanueva or 20
# Nov 13th, 09:09 javier.villanueva by default is limited to 100
# Nov 13th, 09:08 javier.villanueva I want normal pagination, but unlimited results
# Nov 13th, 09:08 javier.villanueva no
# Nov 13th, 09:08 pieceof wait, u want sort,direction and limit but all results in one page ritgh ?
# Nov 13th, 09:08 javier.villanueva but unlimited
# Nov 13th, 09:08 javier.villanueva I want pagination
# Nov 13th, 09:07 kgb.acct.personal @javier.villanueva You can remove pagination (just use query)
# Nov 13th, 09:07 javier.villanueva in pagination
# Nov 13th, 09:06 javier.villanueva Its possible to remove the limit in all index finds in cakephp 3?
# Nov 13th, 09:00 kgb.acct.personal Is there LEFT OUTER JOIN in cakephp?
# Nov 13th, 08:43 conehead @daniel.upshaw if you are using the vendor folder in a shared folder anyway, can't you run composer install outside of Vagrant?
# Nov 13th, 07:16 jotpe Good morning everybody :slightly_smiling_face:
# Nov 13th, 07:14 javier.villanueva morning
# Nov 13th, 07:01 daniel.upshaw Something weird with vagrant most likely :S seems that using NFS for shared folders, it can happen. Not ideal though
# Nov 13th, 07:00 daniel.upshaw I did try that
# Nov 13th, 06:15 conehead did you try using sudo?
# Nov 13th, 05:54 daniel.upshaw If I `composer install` outside Vagrant, it's fine... freshly provisioned a few times as well
# Nov 13th, 05:54 daniel.upshaw Arrrg, for some reason when I `composer install` inside Vagrant, I'm seeing this
# Nov 13th, 00:07 brian.french Ok, I'll put it there.
# Nov 13th, 00:06 dereuromark agreed
# Nov 13th, 00:05 challgren Id say Third Party APIs
# Nov 13th, 00:05 brian.french Yeah, I didn't want to propose a new one, unless something like 'Business Integrations' or something like that made sense.
# Nov 13th, 00:04 challgren Or Third Party APIs
# Nov 13th, 00:04 dereuromark Misc probably -if no other one works
# Nov 13th, 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, 23:49 challgren !help
# Nov 12th, 23:45 challgren Anyone know who runs @cakebot on IRC?
# Nov 12th, 23:36 slackebot1 !awesome
# Nov 12th, 23:36 slackebot1 Command sent from Slack by dereuromark:
# Nov 12th, 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, 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, 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, 16:15 Martin` ah ok :)
# Nov 12th, 16:13 admad @martin he's using the paginator for sorting only :)
# Nov 12th, 15:57 martin no pagination needed when you do that?
# Nov 12th, 15:57 martin limit to 99999999? why would you limit on that? :P
# Nov 12th, 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, 15:48 peter349 $this->saveMany($orders) goes through before save for each entry?
# Nov 12th, 15:47 peter349 Hi
# Nov 12th, 15:47 pieceof $this->paginate = [ 'limit' => 99999999999, 'maxLimit' => 99999999999 ]; yeeehaa .P
# Nov 12th, 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, 14:27 josbeir it should return correct in beforeRender etc
# Nov 12th, 14:27 josbeir @massimoi that function will return the path but not in the initialize() callback
# Nov 12th, 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, 14:25 slackebot1 https://github.com/dereuromark/cakephp-tools/blob/master/docs/I18n/I18n.md or https://github.com/ADmad/cakephp-i18n
# Nov 12th, 14:12 pieceof k, ty sir
# Nov 12th, 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, 14:08 admad if you use foc/search plugin it will handle it for you :slightly_smiling_face:
# Nov 12th, 14:08 pieceof do i need to load paginator in order to get orderable api json response?
# Nov 12th, 14:07 devito thanks
# Nov 12th, 14:07 devito ill give it a shot
# Nov 12th, 14:06 devito mm
# Nov 12th, 14:06 pieceof i use to set a default if are not set, (first page load) (cake2)
# Nov 12th, 14:04 devito do I need to handle the query params in the controller afterwards?
# Nov 12th, 14:03 admad `$this->Paginator->options(['url' => ['?' => $this->request->getQuery()]])`
# Nov 12th, 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, 13:17 conehead Okay thank you. Will have to look for it recursively then
# Nov 12th, 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, 13:16 admad @conehead then there's no way to get all the children in a single query
# Nov 12th, 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, 13:16 slackebot1 array_unshift($path,$locale); }
# Nov 12th, 13:15 conehead Ah. Seems to be for Tree-Behavior. I am not using that behavior...just threaded data :S
# Nov 12th, 13:15 conehead I will have a look thanks. Never have seen `for`
# Nov 12th, 13:14 admad `->find('children', [for =>id])->find('threded')`
# Nov 12th, 13:13 conehead Which does not seem to be a nice solution :P
# Nov 12th, 13:13 conehead And just chain them like 20 times
# Nov 12th, 13:13 conehead this won't get me all children. Could do ``` 'contain' => [ 'Children' => [ 'Children' => [ ... ], ], ]; ```
# Nov 12th, 13:11 dereuromark contain => Chhildren?
# Nov 12th, 13:09 conehead Hm is there a simple way to find all threaded data from a specific node? Simple `->where(['id' => $id])` will always return only the one result as the children are filtered as well
# Nov 12th, 12:38 dereuromark you shouldnt do that. but if you do, best to use the whitelist, instead of forceEnable as global one
# Nov 12th, 12:37 rsteenge How can i active the DebugKit toolbar outside of the local environment? I tried the following command in my bootstrap.php : Configure::write('DebugKit.forceEnable', true);
# Nov 12th, 12:08 tobse For a simple language switcher you just need to edit the content of your static pages. Use the language functions and define the locale like described here. https://book.cakephp.org/3/en/core-libraries/internationalization-and-localization.html#changing-the-locale-at-runtime If you have larger content-blocks you can use switch-case for each language-version in your ctp-file
# Nov 12th, 12:01 pieceof edit config/routes.php
# Nov 12th, 11:59 pieceof web ui -> localization L10n, content -> internazionalization i18n
# Nov 12th, 11:55 massimoi Hi, can anybody help me with this simple problem. I'm used to CakePHP 2.x and I'm new to CakePHP3. I need a simple thing: I need elements and static pages to be in different languages. In 2.x I edited the path of the page in the PagesController, but new I don't understand how to do it. Can you help? Thanks
# Nov 12th, 11:32 development Played with it a bit. It's unfortunate that I develop on Windows (no symlinks), but what I wanted to achieve works. Thanks for the quick reply!
# Nov 12th, 11:31 slackebot1 $validator->isArray('semestershelves') ->requirePresence('semestershelves') ->notEmptyArray('semestershelves', __('Please choose at least one entry.'); ``` Or do I have to run the validation manually before building the entity in the controller? Or put the validation into the associated model? Thanks for any advice.