# |
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() |
# |
Jul 6th 2018, 11:26 |
dwms |
how to set time zone cakephp 3 |
# |
Jul 6th 2018, 11:20 |
rogerpro |
Is there a way to automatically make all forms in an app disabled after submitting to prevent multiple submisions? Any plugin to save time? |
# |
Jul 6th 2018, 11:10 |
wYm |
@slackebot4, >.< yes it work thanks :D but I remember that was with _prefix any way it work thanks again for your help: ) |
# |
Jul 6th 2018, 11:08 |
neon1024 |
Wym, Wouldn’t that be just not specifying it? `['controller' => 'Examples', 'action' => 'index', 'prefix' => false]` |
# |
Jul 6th 2018, 11:07 |
neon1024 |
>:( |
# |
Jul 6th 2018, 11:07 |
neon1024 |
When you implement parent methods and check ‘Copy docblock from parent’ and it comes out with the old classic `{@inheritdoc}` |