# |
Jul 17th 2018, 19:29 |
rightscoreanalysis |
Can anyone tell me what is wrong with this: |
# |
Jul 17th 2018, 17:45 |
ricksaccous |
yep |
# |
Jul 17th 2018, 17:45 |
andre |
thank u |
# |
Jul 17th 2018, 17:44 |
andre |
I'll try |
# |
Jul 17th 2018, 17:43 |
ricksaccous |
https://book.cakephp.org/3.0/en/bake/development.html#creating-a-bake-theme |
# |
Jul 17th 2018, 17:43 |
andre |
How do I do it? |
# |
Jul 17th 2018, 17:42 |
ricksaccous |
@andre yes |
# |
Jul 17th 2018, 17:42 |
andre |
Hello Guys , does anyone know if there is an option, to bake a model from a plugin like templates does? I want that my plugin beeing able to generate all the bake (model ,controller and views) is it possible? |
# |
Jul 17th 2018, 15:17 |
slackebot |
Action: josbeir hides |
# |
Jul 17th 2018, 15:17 |
josbeir |
@bogdan use josbeir/cakephp-filesystem |
# |
Jul 17th 2018, 15:10 |
admad |
Just up the limit |
# |
Jul 17th 2018, 14:41 |
Martin` |
I think I have a stupid helper that adds a lot of input boxes :( |
# |
Jul 17th 2018, 14:41 |
Martin` |
Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0 :'( |
# |
Jul 17th 2018, 14:35 |
admad |
it's not cake, it's PHP which doesn't allow instantiating an abstract class, hence cake can't "find" it and hence the error |
# |
Jul 17th 2018, 14:31 |
zmurphy |
I've found that if I have an abstract controller class and attempt to go to a url that would reference it, I get a missing controller exception. That's good since that's what I want, but how does cake know not to attempt to use the abstract class? |
# |
Jul 17th 2018, 14:18 |
rrd564 |
I would need an example bitbucket-pipelines.yml file for my CakePHP project wich uses mysql for testing |
# |
Jul 17th 2018, 14:16 |
madbbb |
trying to install burzum/cakephp-file-storage for cakephp 3.6, but it has cakephp/migrations ~1.0 requirement and cakephp already has 2.0. is there any workaround to bypass cakephp-file-storage/composer.json requirements check for migration package? |
# |
Jul 17th 2018, 14:08 |
awitte |
neon1024 thank you, that was in plain sight... :D |
# |
Jul 17th 2018, 13:53 |
lubos |
File uploaded https://cakesf.slack.com/files/UBEC23Z6H/FBRMC5C4U/-.txt / https://slack-files.com/T053DPNCM-FBRMC5C4U-abb548110c - This is what I end up with :slightly_smiling_face: |
# |
Jul 17th 2018, 13:47 |
lubos |
OK :slightly_smiling_face: it is just nice that with entities this is already object, but i guess this validation goes before marshal :slightly_smiling_face: ... thanks |
# |
Jul 17th 2018, 13:47 |
dereuromark |
usually,. yeah |
# |
Jul 17th 2018, 13:45 |
lubos |
@origamifreak2 thanks, makes sense... this is one-time rule for now (might tidy up later) |
# |
Jul 17th 2018, 13:45 |
lubos |
@dereuromark but in above code i have dob array, not date / chronos object ... do I need to construct object from that value frist? |
# |
Jul 17th 2018, 13:44 |
origamifreak2 |
@lubos if you think you're going to be creating a bunch of custom validation functions, you could create a custom validator class that extends the default validator class. |
# |
Jul 17th 2018, 13:43 |
dereuromark |
lubosR: custom method using chronos sure works |
# |
Jul 17th 2018, 13:41 |
lubos |
File uploaded https://cakesf.slack.com/files/UBEC23Z6H/FBS2WQTFF/-.txt / https://slack-files.com/T053DPNCM-FBS2WQTFF-0c74328f69 - Also just noticed that this shows array with day, month, year... was expecting date object |
# |
Jul 17th 2018, 13:36 |
lubos |
Should I make custom rule at validator and then use Chronos methods? |
# |
Jul 17th 2018, 13:36 |
lubos |
What is the best way to validate e.g. DOB older than 18? |
# |
Jul 17th 2018, 13:31 |
neon1024 |
Then it will match on or allow optionally null |
# |
Jul 17th 2018, 13:31 |
neon1024 |
So use a notMatching() with an inverted condition |
# |
Jul 17th 2018, 13:30 |
neon1024 |
awitte, Yes there is. The approach which works for me is a nested, inverted notMatching |
# |
Jul 17th 2018, 13:25 |
dereuromark |
or IS NULL maybe? |
# |
Jul 17th 2018, 13:15 |
awitte |
hi. Is there a way filtering Data by matching or Null? So either it has a relation and this relation fits certain conditions or it doesnt have any related data |
# |
Jul 17th 2018, 12:40 |
chris-andre |
@snake, you'll probably point to the public folder for each app. /plugins/app1/webroot, /plugins/app2/webroot. (https://gist.github.com/chris-andre/c447c3508d02d1e1dfdb5c5616b22f46) |
# |
Jul 17th 2018, 12:35 |
admad |
hehe |
# |
Jul 17th 2018, 12:32 |
birdy247 |
@admad Id say the most annoying things are the pops which appear just as you go to close the page |
# |
Jul 17th 2018, 12:15 |
admad |
@birdy247 @neon1024 endless scroll is the most annoying thing frontend devs have come up wiht |
# |
Jul 17th 2018, 12:03 |
snake-venom |
can anyone here help me in this ? |
# |
Jul 17th 2018, 12:02 |
snake-venom |
here is my nginx file |
# |
Jul 17th 2018, 12:02 |
snake-venom |
https://pastebin.com/tSe7gdfP |
# |
Jul 17th 2018, 12:02 |
snake-venom |
i have a folder /plugins and in this i want to run 5 cakephp projects.. but i am not getting what to add in config nginx file... |