# |
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 |
# |
Feb 10th 2020, 12:12 |
lpj145 |
yes i know. |
# |
Feb 10th 2020, 12:12 |
lpj145 |
first fact about issue, cakephp continue to evolve on way like full framework, at this time, many developers, business is changing way, micro, realtime, stream, nothing this can be found on cakephp.. |
# |
Feb 10th 2020, 12:11 |
rochasmarcelo |
By the way are you familiar with https://github.com/FriendsOfCake/awesome-cakephp? |
# |
Feb 10th 2020, 12:09 |
lpj145 |
i love so much cakephp, i'm asking about out from here, but, at this time working a plugin to improve apis. |
# |
Feb 10th 2020, 12:09 |
rochasmarcelo |
I think the community is open to opinions and suggestions |
# |
Feb 10th 2020, 12:08 |
rochasmarcelo |
I would like to know more what issues you are having and what things you things CakePHP should have |
# |
Feb 10th 2020, 12:08 |
lpj145 |
is a good time to give opinion... cake core team is open to hear opinions and is new.... |
# |
Feb 10th 2020, 12:07 |
rochasmarcelo |
I have an impression that in Brasil people have used more Facebook groups than slack just because is more common. |
# |
Feb 10th 2020, 12:07 |
lpj145 |
:D |
# |
Feb 10th 2020, 12:06 |
slackebot |
ask to have an easy way to implement an API and there are many good plugins for it. |
# |
Feb 10th 2020, 12:06 |
rochasmarcelo |
Hi @lpj145 it is sad to hear this, I'm also from Brazil. It's okay to have different option about framework and this is a good place to discuss about CakePHP. I see that CakePHP has always focused to help start applications faster and grow consistent, but this may not be good for everyone and it's okay. I would say that many changes people would see in CakePHP or any other framework could be archived using existing or new plugins, some |
# |
Feb 10th 2020, 11:45 |
challgren |
I personally dont see the issue with a checkbox being away from the label, I could see that where there is multiple but not on an active/inactive |
# |
Feb 10th 2020, 11:41 |
neon1024 |
They must respect your knowledge as they picked you for the project |
# |
Feb 10th 2020, 11:40 |
neon1024 |
:) |
# |
Feb 10th 2020, 11:40 |
neon1024 |
Knowingly creating bad software because someone wants it to be bad and not collaborating with them to make it better just confuses me |
# |
Feb 10th 2020, 11:40 |
neon1024 |
..but you’re a developer, your expertise in UI should be greater than your client in most instances, so guiding them on good working practises and UI is part of the role I think |
# |
Feb 10th 2020, 11:34 |
challgren |
I’m just following what the client wants http://webapplayers.com/inspinia_admin-v2.9.3/form_basic.html |
# |
Feb 10th 2020, 11:33 |
neon1024 |
As they’re related items as part of a set |
# |
Feb 10th 2020, 11:33 |
neon1024 |
The label should be close to the input imho |
# |
Feb 10th 2020, 11:32 |
neon1024 |
At least right align the label so I don’t have to look right across and try to remember what the label is when I’m looking at the input |
# |
Feb 10th 2020, 11:32 |
neon1024 |
Man that’s ugly |
# |
Feb 10th 2020, 11:24 |
challgren |
Yay!!!!! |
# |
Feb 10th 2020, 11:19 |
ndm |
If you want to check whether it was a non-change? Sure, that should work. |
# |
Feb 10th 2020, 11:17 |
birdy247 |
so we would need to getOriginal and compare? |
# |
Feb 10th 2020, 11:17 |
birdy247 |
Right cool |
# |
Feb 10th 2020, 11:16 |
ndm |
yes |