# |
Jan 23rd 2020, 18:33 |
ricksaccous |
$this->Form->control('somecheckbox', ['type' => 'checkbox']); |
# |
Jan 23rd 2020, 18:32 |
ricksaccous |
you just create a form control in the edit.php |
# |
Jan 23rd 2020, 18:32 |
luizcmarin |
where I should put the public $ removerFoto1 = 0 statement; to be seen in both edit.php and the controller? |
# |
Jan 23rd 2020, 18:32 |
ricksaccous |
and look for the data in the controller... |
# |
Jan 23rd 2020, 18:32 |
ricksaccous |
you can simply create a form control type checkbox and name it whateve ryou want |
# |
Jan 23rd 2020, 18:30 |
luizcmarin |
in fact, I think I put the variable declaration in the wrong place ... |
# |
Jan 23rd 2020, 18:28 |
luizcmarin |
Hi, I want to create a variable, type checkbox, there is no need to be a database field. For example, on the edit screen I uploaded an image. If the user wishes, he can check the "Remove image" checkbox on the editing screen so that I can take the necessary action on the controller. What is that called in the cake? Or is there another better alternative? |
# |
Jan 23rd 2020, 18:27 |
ricksaccous |
but anyway, as long as i can help someone get something that works |
# |
Jan 23rd 2020, 18:27 |
ricksaccous |
or an event |
# |
Jan 23rd 2020, 18:27 |
ricksaccous |
would kind of be nice if he had a callback hook that could be implemented on failure though |
# |
Jan 23rd 2020, 18:27 |
ricksaccous |
but yeah just scanning it with a cron every x minutes seems like an easy solution |
# |
Jan 23rd 2020, 18:26 |
ricksaccous |
unfortunately i can't implement it because i have to work on another project |
# |
Jan 23rd 2020, 18:26 |
ricksaccous |
@challgren that's a solution i thought of as well, lol |
# |
Jan 23rd 2020, 18:22 |
challgren |
@ricksaccous I have a regular Command that looks at the queue table and when theres 15 failures it emails me non queue |
# |
Jan 23rd 2020, 18:05 |
ricksaccous |
has anyone done anything in https://github.com/dereuromark/cakephp-queue like send an email on task failure? |
# |
Jan 23rd 2020, 16:46 |
neothermic |
yes |
# |
Jan 23rd 2020, 16:46 |
admad |
@neothermic (R) means reserved :) |
# |
Jan 23rd 2020, 16:43 |
admad |
`groups` |
# |
Jan 23rd 2020, 16:34 |
neothermic |
ahh, it's only an issue if it's got `(R)` in the name in the list |
# |
Jan 23rd 2020, 16:33 |
jotpe |
I'll just rename all my table fields to xyz1235 |
# |
Jan 23rd 2020, 16:32 |
neothermic |
`inactive` ¬_¬ |
# |
Jan 23rd 2020, 16:32 |
neothermic |
those are going to break a few things |
# |
Jan 23rd 2020, 16:32 |
neothermic |
`active`, `admin` |
# |
Jan 23rd 2020, 16:32 |
neothermic |
https://dev.mysql.com/doc/refman/8.0/en/keywords.html#keywords-new-in-current-series |
# |
Jan 23rd 2020, 16:32 |
neothermic |
wow, they added a bunch in 8 |
# |
Jan 23rd 2020, 16:30 |
jotpe |
grrrr |
# |
Jan 23rd 2020, 16:29 |
neothermic |
`RANK (R); added in 8.0.2 (reserved)` |
# |
Jan 23rd 2020, 16:29 |
neon1024 |
@jotpe Oh, nice find :clap: |
# |
Jan 23rd 2020, 16:29 |
jotpe |
wtf. Took me ages to solve this: since MySQL 8 `rank()` is a keyword. For that reason, my local dev env does not work @neon1024 |
# |
Jan 23rd 2020, 16:28 |
neothermic |
aha, but I can pass label as an array, and that'll do it |
# |
Jan 23rd 2020, 16:23 |
neothermic |
ah, boo, the bootstrap-ui doesn't support labelOptions :| |
# |
Jan 23rd 2020, 16:01 |
slackebot |
though what the right way would be... |
# |
Jan 23rd 2020, 16:01 |
ndm |
As you can see in the stacktrace, it happens when retrieving the target models for associations. So maybe your CMS models do not have associations, or the table classes already exists and have the CMS connection set as default. And/or the table classes for the associations for your pdfPlatform connection already exist and don't have their default connection changed. That's probably something that would need to be fixed in bake anyhow, not sure |
# |
Jan 23rd 2020, 15:54 |
k4t |
if I rename "PdfPlatform" source to "default" it will work of course |
# |
Jan 23rd 2020, 15:51 |
k4t |
I can bake models from "CMS" source, but not from "pdfPlatform" |
# |
Jan 23rd 2020, 15:51 |
k4t |
I have two datasources defined, one is "pdfPlatform" and second one is "CMS" |
# |
Jan 23rd 2020, 15:49 |
k4t |
looks like --connection parameter is ignored somewhere by bake plugin |
# |
Jan 23rd 2020, 15:48 |
k4t |
here you can see full log |
# |
Jan 23rd 2020, 15:47 |
slackebot |
<k4t> |
# |
Jan 23rd 2020, 15:44 |
ndm |
Look at the stacktrace to see where and for what operation exactly the exception is being thrown |
# |
Jan 23rd 2020, 15:41 |
k4t |
as you can see |