# |
Jul 6th 2018, 13:31 |
neon1024 |
Anyone implemented a thumbnail transformer into the FriendsOfCake/Upload plugin? |
# |
Jul 6th 2018, 13:28 |
magiq |
slackebot4: are you insane? |
# |
Jul 6th 2018, 13:28 |
itmpls |
yeah I suppose |
# |
Jul 6th 2018, 13:28 |
josbeir |
but it will probably be faster to just make a new migration for your extended table |
# |
Jul 6th 2018, 13:28 |
itmpls |
if there is a plugin in cakephp, another plugin can't have the same name, right? so if I have 'Users' in vendor/meder/users then if someone wants to extend, they have to name theirs something different.. in app/plugins/MyUsers for example |
# |
Jul 6th 2018, 13:27 |
josbeir |
so if you want to make that dynamic you would need to write some code inside the migration to handle the dynamic table name |
# |
Jul 6th 2018, 13:27 |
josbeir |
everything inside a migration is hardcoded |
# |
Jul 6th 2018, 13:27 |
itmpls |
i want to create a plugin and have the ability for someone to extend it + extend the migration |
# |
Jul 6th 2018, 13:26 |
josbeir |
i think i'm just not following what you want to do :) |
# |
Jul 6th 2018, 13:26 |
itmpls |
no, I mean have it read from somewhere dynamic or override it somehow |
# |
Jul 6th 2018, 13:25 |
josbeir |
or what do you mean ? |
# |
Jul 6th 2018, 13:25 |
josbeir |
$this->setTable('mytable') |
# |
Jul 6th 2018, 13:25 |
itmpls |
i mean is there anyway to make the table name dynamic? |
# |
Jul 6th 2018, 13:25 |
josbeir |
@tim what is your take on the match this evening? |
# |
Jul 6th 2018, 13:24 |
josbeir |
migrations doesn't use cake tables |
# |
Jul 6th 2018, 13:23 |
itmpls |
has anyone had to extend a plugin that had migrations (extend the table etc)? would the migration be dynamic enough to handle the table name change, or how does that work? |
# |
Jul 6th 2018, 13:23 |
josbeir |
100% for sure |
# |
Jul 6th 2018, 13:23 |
tim |
@josbeir Do I have to lock oujt my GF again for the match tonight= |
# |
Jul 6th 2018, 13:22 |
josbeir |
which one ? :P |
# |
Jul 6th 2018, 13:15 |
braeden |
I feel sorry for whoever had to build those regexes for the date() method |
# |
Jul 6th 2018, 12:55 |
josbeir |
would be cool :slightly_smiling_face: |
# |
Jul 6th 2018, 12:55 |
neon1024 |
Well @lorenzo might change that soon! :P |
# |
Jul 6th 2018, 12:55 |
josbeir |
but what you are pointing out is actually true |
# |
Jul 6th 2018, 12:54 |
josbeir |
i'm not asking questions about that, as this hasn't changed since the cake 1 days |
# |
Jul 6th 2018, 12:54 |
josbeir |
https://book.cakephp.org/3.0/en/core-libraries/validation.html#core-validation-rules |
# |
Jul 6th 2018, 12:53 |
josbeir |
if rule is an array, the first arg is the method and the following the arguments |
# |
Jul 6th 2018, 12:53 |
neon1024 |
Especially as the Validator doesn’t implement a direct rule |
# |
Jul 6th 2018, 12:53 |
josbeir |
but its the way cake validation method work ? :P |
# |
Jul 6th 2018, 12:53 |
neon1024 |
It’s very very hard to see that from the code |
# |
Jul 6th 2018, 12:53 |
josbeir |
'rule' => [ 'extension', [ 'jpg', 'png' ] ] |
# |
Jul 6th 2018, 12:52 |
josbeir |
rule' => 'extension' |
# |
Jul 6th 2018, 12:51 |
neon1024 |
How do I use this method? https://api.cakephp.org/3.6/source-class-Cake.Validation.Validation.html#775-797 |
# |
Jul 6th 2018, 12:41 |
IamTrying |
SAML possible for free ? |
# |
Jul 6th 2018, 12:39 |
Martin` |
so it has to find the closest color |
# |
Jul 6th 2018, 12:39 |
Martin` |
I've connected store colors to the group. so it is the same for al children, but it is also possible to connect the color to a child |
# |
Jul 6th 2018, 12:38 |
Martin` |
hope it is understandable in english haha :P |
# |
Jul 6th 2018, 12:38 |
Martin` |
I think there is no relations for tree's that if I connect something to a group, and if there is no one for the child, it find it in the tree up? |
# |
Jul 6th 2018, 11:28 |
rogerpro |
check Time::setDefaultLocale(‘ja_JP’); |
# |
Jul 6th 2018, 11:28 |
rogerpro |
@dwms Time::setDefaultLocale(‘ja_JP’); ? |
# |
Jul 6th 2018, 11:27 |
dwms |
show hour incorrect |
# |
Jul 6th 2018, 11:27 |
dwms |
Time::now() |