# |
Feb 10th 2020, 14:18 |
ndm |
@challgren What output do you get? |
# |
Feb 10th 2020, 14:18 |
FunkadelicRelic |
Hey all - I'm having some problems trying to install the friendsofcake\bootstrap-ui plugin on CakePHP 4.0.3 - was hoping someone might be able to point me in the right direction? |
# |
Feb 10th 2020, 14:17 |
challgren |
Yeah moving it to render isnt working either |
# |
Feb 10th 2020, 14:16 |
ndm |
just like `nestedMenuClass` |
# |
Feb 10th 2020, 14:16 |
ndm |
@challgren Yeah, it's a not valid menu creation option, only `templates`, `templateVars` and `menuAttributes`, `ancestorClass` can be set in `render()` |
# |
Feb 10th 2020, 14:15 |
spriz |
@damian just the way it works :) |
# |
Feb 10th 2020, 14:14 |
challgren |
4.0 |
# |
Feb 10th 2020, 14:13 |
ndm |
@challgren What version are you using? I have to check whether `ancestorClass` is actually a valid menu creation option |
# |
Feb 10th 2020, 14:12 |
dereuromark |
I should have some examples in the sandbox |
# |
Feb 10th 2020, 14:12 |
challgren |
So I add the ancestorClass and for some reason its not getting added to the UL for the nestedMenu |
# |
Feb 10th 2020, 14:11 |
damiano |
or it is the way it works? |
# |
Feb 10th 2020, 14:11 |
damiano |
@spriz is it a known bug? |
# |
Feb 10th 2020, 14:11 |
ndm |
sure |
# |
Feb 10th 2020, 14:10 |
challgren |
Anyone play with icings/menu? |
# |
Feb 10th 2020, 14:09 |
ndm |
@spriz My understanding was that the lock file is used for calculating diffs, ie not for applying migrations |
# |
Feb 10th 2020, 14:01 |
spriz |
Hmm - I'd guess it fetches state from the phinx table anyway |
# |
Feb 10th 2020, 14:00 |
ndm |
@spriz Don't have one at hand... I'd think it's the same as with other lock files, you want to start from a specific state. |
# |
Feb 10th 2020, 13:59 |
pieceof |
i never use contraints at bd level for web apps, control all with code, mysql is buggy |
# |
Feb 10th 2020, 13:59 |
spriz |
I just want to know what I'm missing out on :) |
# |
Feb 10th 2020, 13:59 |
spriz |
:) do you happen to have a link for that as well? We never comitted it and haven't had problems in a the few years of using it :) :) |
# |
Feb 10th 2020, 13:58 |
ndm |
Now that's a totally different question :upside_down_face: |
# |
Feb 10th 2020, 13:58 |
javier.villanueva |
: D |
# |
Feb 10th 2020, 13:58 |
spriz |
@ndm for some reason this issue does not explain to me *why* it should be comitted :) |
# |
Feb 10th 2020, 13:56 |
damiano |
thanks @spriz!! |
# |
Feb 10th 2020, 13:56 |
ndm |
https://github.com/cakephp/migrations/issues/252 |
# |
Feb 10th 2020, 13:54 |
javier.villanueva |
In Migrations... I should add schema-dump-defaul.lock to gitignore? |
# |
Feb 10th 2020, 13:54 |
spriz |
this will work out https://gist.github.com/Spriz/08e8a98c60cc085bf8b02f1ecd8d0685 ) |
# |
Feb 10th 2020, 13:52 |
spriz |
it returns a ` Cake\View\ViewBuilder` instance |
# |
Feb 10th 2020, 13:52 |
spriz |
https://api.cakephp.org/3.8/class-Cake.Mailer.Mailer.html#_viewBuilder |
# |
Feb 10th 2020, 13:52 |
spriz |
`viewBuilder()` fucks it up :) |
# |
Feb 10th 2020, 13:50 |
damiano |
why?? |
# |
Feb 10th 2020, 13:50 |
slackebot |
`->setTemplate('Frontend.conferma');` `//->setLayout('fancy')` `$mailer->deliver();` |
# |
Feb 10th 2020, 13:50 |
damiano |
`$mailer = new Mailer('default');` `$mailer = $mailer` `->setEmailFormat('html')` `->setSender('xxxx@xxxxx.com', 'xxxx')` `->setFrom(['xxxx@xxxxx.com' => 'xxxx'])` `->setTo($to)` `->setTo('x@otheraccount.com')` `->setViewVars(['data' => $data])` `->setSubject('text foo')` `->viewBuilder()` |
# |
Feb 10th 2020, 13:50 |
damiano |
hello, i get this error: Call to undefined method Cake\View\ViewBuilder::deliver() when i do : |
# |
Feb 10th 2020, 13:42 |
spriz |
Myself I've never seen the real value of it in my daily Cake work - but I've loved having all logic in app-level, and I've not yet had performance issues with it anyway |
# |
Feb 10th 2020, 13:41 |
spriz |
Hey mariadb/mysql peeps! Do you usually add relations in mysql/mariadb tables as well as in the app code? :) Why? Why not? |
# |
Feb 10th 2020, 13:02 |
david |
thank you @javier.villanueva, I realized... |
# |
Feb 10th 2020, 13:02 |
javier.villanueva |
https://book.cakephp.org/3/en/orm/saving-data.html#validation-and-patchentity |
# |
Feb 10th 2020, 13:01 |
david |
ouch... I was reading the 2.X documentation instead of 3.x |
# |
Feb 10th 2020, 12:59 |
david |
I am trying to save without validation, using this: $this->Model->save($entity, ['validate' => false]) I have tried with this too: $this->Model->save($entity, false) But validation is triggered in both cases. Am I doing something wrong? |
# |
Feb 10th 2020, 12:57 |
david |
Morning |