# |
Dec 12th 2019, 15:52 |
ricksaccous |
i still remember your plight |
# |
Dec 12th 2019, 15:52 |
ricksaccous |
hahaha |
# |
Dec 12th 2019, 15:52 |
neothermic |
yep! |
# |
Dec 12th 2019, 15:52 |
neothermic |
so I can't use anything higher because the PHP version requirement got bumped |
# |
Dec 12th 2019, 15:52 |
ricksaccous |
all for pdfs |
# |
Dec 12th 2019, 15:52 |
ricksaccous |
:( |
# |
Dec 12th 2019, 15:52 |
neothermic |
cause it's sadly still running on the same servers as the 2.x platform, which is currently still on 5.5 ¬_¬ |
# |
Dec 12th 2019, 15:51 |
neothermic |
it's part of the reason why I'm doing it in 3, I refused to write this new huge system in an old version of cake |
# |
Dec 12th 2019, 15:51 |
ricksaccous |
then why not use latest cake XD |
# |
Dec 12th 2019, 15:51 |
ricksaccous |
oh lol |
# |
Dec 12th 2019, 15:51 |
neothermic |
oh, this is a new property. the old huge app is still on 2.x :) |
# |
Dec 12th 2019, 15:51 |
ricksaccous |
keep going |
# |
Dec 12th 2019, 15:51 |
neothermic |
first rule of troubleshooting: make no assumptions |
# |
Dec 12th 2019, 15:51 |
ricksaccous |
also it's amazing you're getting your huge app that far up in cake versions |
# |
Dec 12th 2019, 15:50 |
neothermic |
I'll try it the pre 3.4 way |
# |
Dec 12th 2019, 15:50 |
neothermic |
yeah, hmm |
# |
Dec 12th 2019, 15:50 |
ricksaccous |
but then wouldn't it whine the method doesn't exist |
# |
Dec 12th 2019, 15:50 |
ricksaccous |
lol |
# |
Dec 12th 2019, 15:50 |
neothermic |
I think I'm using pre 3.4 |
# |
Dec 12th 2019, 15:50 |
neothermic |
ooh, hmm, wait |
# |
Dec 12th 2019, 15:50 |
ricksaccous |
also that is a peculiar error |
# |
Dec 12th 2019, 15:48 |
ricksaccous |
pretty sure you knew that already though |
# |
Dec 12th 2019, 15:48 |
neothermic |
yeah, but if I enable that setTemplates line, I get errors that start with: ```substr() expects parameter 1 to be string, array given [CORE/src/View/Helper/FormHelper.php, line 2472]``` |
# |
Dec 12th 2019, 15:47 |
ricksaccous |
i do that plugin-wide for my theme |
# |
Dec 12th 2019, 15:47 |
ricksaccous |
that works, if all you're doing is literally changing a default template you could also do that sitewide |
# |
Dec 12th 2019, 15:45 |
neothermic |
the date widget template does have the various {{day}} {{month}} etc things in it; I copied the default one and just changed the order to be DMY rather than YMD :P |
# |
Dec 12th 2019, 15:42 |
slackebot2 |
using it as per the documentation... |
# |
Dec 12th 2019, 15:42 |
neothermic |
so... templates... I did something like this: ```$dobTemplaate = ['dateWidget' => '<ul class="list-inline">...</ul>']; $this->Form->setTemplates($dobTemplaate); echo $this->Form->input($item['field'], $item['settings']);``` (where `$item` is an array that contains the settings for the given input item) This seems to have exploded, as now I'm getting errors from FormHelper; if I remove the setTemplates line then it all works. I think I'm |
# |
Dec 12th 2019, 15:37 |
val |
Hi, is there an alternative for `$this->Form->inputDefaults(` in 3.x? |
# |
Dec 12th 2019, 15:27 |
latenal |
it works!! Thanks a lot |
# |
Dec 12th 2019, 15:22 |
dereuromark |
You create the jobs inside your code. And you have a worker running to process them. |
# |
Dec 12th 2019, 15:15 |
latenal |
So should I instead doing something like.. ` ```$QueuedJobs->createJob('PaymentsBuild', [],... ``` |
# |
Dec 12th 2019, 15:14 |
latenal |
That’s what I saw in the doc: ``` $this->QueuedJobs->createJob( 'Execute', ['command' => 'bin/cake importer run'], ['reference' => 'my-import', 'priority' => 2] );``` |
# |
Dec 12th 2019, 15:12 |
ricksaccous |
oh yeah that's marks, yeah, what i said applies |
# |
Dec 12th 2019, 15:12 |
ricksaccous |
which plugin are you using |
# |
Dec 12th 2019, 15:12 |
ricksaccous |
oh wait |
# |
Dec 12th 2019, 15:11 |
ricksaccous |
please read the docs on workers and the nuances of them |
# |
Dec 12th 2019, 15:11 |
ricksaccous |
bin/cake queue runworker |
# |
Dec 12th 2019, 15:11 |
ricksaccous |
you have to run the worker |
# |
Dec 12th 2019, 15:11 |
ricksaccous |
you don't run them like that |
# |
Dec 12th 2019, 15:09 |
latenal |
hey! has someone used cakephp-queue plugin? I made a task called `QueuePaymentsBuildTask` but I cannot run it. I don’t know what i am doing wrong. I call it `bin/cake payments_build` and I get an error `Exception: Unknown command` |