# |
Dec 1st 2017, 05:28 |
admad |
On older version you can just use input() instead of control() |
# |
Dec 1st 2017, 05:27 |
admad |
AlexMax: control() is the replacement for input() |
# |
Dec 1st 2017, 03:08 |
AlexMax |
(I'm sadly stuck on a system with PHP 5.4 + distro supplied security patches...at least for now) |
# |
Dec 1st 2017, 03:07 |
AlexMax |
what is this ::control() stuff in the docs and why doesn't 3.1 have it |
# |
Dec 1st 2017, 03:07 |
AlexMax |
Why is there no mention of FormHelper::input() in the docs anymore? |
# |
Nov 30th 2017, 22:15 |
obinoob |
anyone knows why debug($entity->errors()); is filled with errors but they do not get displayed as usually? I'm using form helper to build form... |
# |
Nov 30th 2017, 22:03 |
obinoob |
sorry too much "the" |
# |
Nov 30th 2017, 22:02 |
obinoob |
I have debugged the entity and the actually the validation errors are there but not showing in the form why is that? |
# |
Nov 30th 2017, 21:52 |
obinoob |
*trouble |
# |
Nov 30th 2017, 21:52 |
obinoob |
casmo: as I thought, I've read that you can specify a custom validator but that is not what I need... anyway I'm guessing that my it's naming misuse! |
# |
Nov 30th 2017, 21:45 |
casmo |
Associaations uses their own table validation rules |
# |
Nov 30th 2017, 21:31 |
obinoob |
Do I need to write a custom validator when using nested associations? |
# |
Nov 30th 2017, 21:14 |
obinoob |
neon1024 thank you for your precious help ;) |
# |
Nov 30th 2017, 21:14 |
obinoob |
So I manage to save data using associations with more than one table deep :) pretty awesome really! But I'm facing lack of validation... I believe that validation runs before marshalling?!? |
# |
Nov 30th 2017, 20:54 |
obinoob |
dereuromark well, I haven't found it but I was able to manage ;) |
# |
Nov 30th 2017, 20:49 |
dereuromark |
should be in docs |
# |
Nov 30th 2017, 20:41 |
obinoob |
Whats the form input type naming convention for hasMany association? |
# |
Nov 30th 2017, 20:30 |
maymeow |
File uploaded https://cakesf.slack.com/files/U1JUQH43E/F892B7HPZ/chrome_2017-11-30_21-28-04.png / https://slack-files.com/T053DPNCM-F892B7HPZ-57a4e1b86e - git with php |
# |
Nov 30th 2017, 20:12 |
saeideng |
by |
# |
Nov 30th 2017, 20:10 |
inoas |
gnite |
# |
Nov 30th 2017, 20:06 |
saeideng |
dereuromark I opened a Issue about date |
# |
Nov 30th 2017, 19:43 |
saeideng |
_name |
# |
Nov 30th 2017, 19:34 |
angelxmoreno |
oh snap, we got named routes in Cake now? :scream: |
# |
Nov 30th 2017, 19:00 |
dereuromark |
I made a PR to not move those into 404, @mail |
# |
Nov 30th 2017, 18:50 |
angelxmoreno |
@saeideng it works ! |
# |
Nov 30th 2017, 18:50 |
angelxmoreno |
https://pics.me.me/let-me-show-you-my-shocked-face-quitmemes-com-14212859.png |
# |
Nov 30th 2017, 18:49 |
saeideng |
`plugins/BootstrapTheme/src/Template/Layout/default.ctp` |
# |
Nov 30th 2017, 18:49 |
saeideng |
Template |
# |
Nov 30th 2017, 18:49 |
saeideng |
`Templates` no |
# |
Nov 30th 2017, 18:48 |
angelxmoreno |
on it |
# |
Nov 30th 2017, 18:48 |
saeideng |
no |
# |
Nov 30th 2017, 18:48 |
saeideng |
oh |
# |
Nov 30th 2017, 18:48 |
saeideng |
:slightly_smiling_face: |
# |
Nov 30th 2017, 18:48 |
saeideng |
just test it |
# |
Nov 30th 2017, 18:48 |
angelxmoreno |
not before render ? |
# |
Nov 30th 2017, 18:48 |
saeideng |
in beforeFilter |
# |
Nov 30th 2017, 18:48 |
saeideng |
set ` $this->viewBuilder()->setTheme('BootstrapTheme');` |
# |
Nov 30th 2017, 18:46 |
angelxmoreno |
Pretty sure I read https://book.cakephp.org/3.0/en/views/themes.html thoroughly |
# |
Nov 30th 2017, 18:40 |
slackebot2 |
out in `plugins/BootstrapTheme/src/Templates/Layout/default.ctp` Why no workie? |
# |
Nov 30th 2017, 18:40 |
slackebot2 |
// Note: These defaults are just to get started quickly with development // and should not be used in production. You should instead set "_serialize" // in each action as required. if (!array_key_exists('_serialize', $this->viewVars) andand in_array($this->response->type(), ['application/json', 'application/xml']) ) { $this->set('_serialize', true); } } ``` 3. created a new lay |
# |
Nov 30th 2017, 18:40 |
angelxmoreno |
greetings bakers! I need help getting themes to work on CakePHP 3.5.6 1. Baked a plugin called `BootstrapTheme` 2. Added this to my AppController `beforeRender`: ``` /** * Before render callback. * * @param \Cake\Event\Event $event The beforeRender event. * @return \Cake\Http\Response|null|void */ public function beforeRender(Event $event) { $this->viewBuilder()->setTheme('BootstrapTheme'); |