Log message #4199209

# At Username Text
# Aug 21st 2019, 14:24 ricksaccous admad is prob right where if you just lowered some paddings/margins in a couple places you'd be fine
# Aug 21st 2019, 14:23 ricksaccous i dunno
# Aug 21st 2019, 14:23 ricksaccous i would just test it from your main computer without cake if you could
# Aug 21st 2019, 14:14 admad problem is most likely in your html not wkhtmltopdf
# Aug 21st 2019, 14:12 scuadra this is the cakepdf configuration
# Aug 21st 2019, 14:11 scuadra 'margin' => [ 'bottom' => 0, 'left' => 0, 'right' => 0, 'top' => 0 ]
# Aug 21st 2019, 14:11 scuadra I set all margins to 0 :)
# Aug 21st 2019, 14:11 scuadra yes
# Aug 21st 2019, 14:10 ricksaccous try messing with the settings?
# Aug 21st 2019, 14:10 ricksaccous it probably just means some setting or something to do with page space is causing your pdf to be larger than the space it takes up on the web?
# Aug 21st 2019, 14:09 scuadra Hello. Has somebody encountered a blank page problem using CakePDF with wkhtmltopdf engine? When I export to pdf, my pdf has 2 pages but the second is absolutely empty.
# Aug 21st 2019, 14:08 neon1024 Here are the options, which are probably on api.cakephp.org also I’d imagine
# Aug 21st 2019, 14:08 neon1024 https://github.com/cakephp/cakephp/blob/master/src/View/Helper/FormHelper.php#L1130-L1160
# Aug 21st 2019, 14:07 maymeow @neon1024 @ricksaccous thank you ... I tried to find title not label ..
# Aug 21st 2019, 14:05 ricksaccous https://book.cakephp.org/3.0/en/views/helpers/form.html
# Aug 21st 2019, 14:05 neon1024 `$this->Form->control('example', ['label' => 'Cats vs Dogs?']);`
# Aug 21st 2019, 14:05 ricksaccous also there's a lot of reading to do on this
# Aug 21st 2019, 14:05 ricksaccous you give it the label option
# Aug 21st 2019, 14:03 maymeow How can I change title for form control?
# Aug 21st 2019, 13:18 ricksaccous hahaha i'm going to try
# Aug 21st 2019, 13:17 neon1024 If you attend Cakefest I can tell you more about it in my talk #shamelessplug
# Aug 21st 2019, 13:17 neon1024 +1 for Vue.js
# Aug 21st 2019, 13:13 ricksaccous i see
# Aug 21st 2019, 13:13 admad don't have to let js takeover your whole page like the other js frameworks
# Aug 21st 2019, 13:13 admad vuejs js is nice if you want to spice up just parts of your html page
# Aug 21st 2019, 13:12 ricksaccous for this page i'm thinking one of those frameworks might actually make more sense, but yeah I never explored it very much to be honest
# Aug 21st 2019, 13:12 ricksaccous i'm actually working on an intricate piece right now with a lot of logic intertwined with a lot of ajax calls via jquery
# Aug 21st 2019, 13:11 admad i abore the js frameworks ecosystem
# Aug 21st 2019, 13:09 ricksaccous haha yeah i pretty much only do jquery work as well, haven't touched vuejs or any js framework either
# Aug 21st 2019, 13:08 admad i only do jquery work and have done bit of vuejs :slightly_smiling_face:
# Aug 21st 2019, 13:00 ricksaccous @admad have you ever worked on js heavy projects? you seem to work on a ton of back end work
# Aug 21st 2019, 12:58 ricksaccous meh, js problems
# Aug 21st 2019, 12:58 ricksaccous then you would have to make sure your custom submit logic is still bound but that's pretty easy to do
# Aug 21st 2019, 12:57 ricksaccous then you will get your errors as intended every time without having to worry about custom js logic
# Aug 21st 2019, 12:56 ricksaccous another thing to consider doing is re-rendering the whole form after cake has it's way with it
# Aug 21st 2019, 12:55 ricksaccous which i read from and apply to the form
# Aug 21st 2019, 12:55 ricksaccous and removing them where i need them and did set getErrors to a variable
# Aug 21st 2019, 12:55 ricksaccous since i'm using a custom theme i built out some js for plopping errors where i need them
# Aug 21st 2019, 11:49 Nitrogen generally, it's fine UNTIL you NEED something serialized and expect it to 'just work' as implied by documentation. w/o added preconditions. :)
# Aug 21st 2019, 11:48 admad viewBuilder()->setOption('serialize', ...)
# Aug 21st 2019, 11:47 admad setting `_serialize` vs setting the actual view vars is pretty confusing to first time users, which is why I changed it in 4.x where you have to use viewBuilder->setOption('serialize', ...)` instead