Log message #4033188

# At Username Text
# May 28th 2017, 03:11 borjahen I get an error: Fatal error: You must enable the intl extension to use CakePHP. in C:\Users\Borja\Downloads\USBWebserver v8.6\root\webcake\config\bootstrap.php on line 25. I use Windows and I use the command 'php -m' and the extension 'intl' exists
# May 28th 2017, 03:10 borjahen Hello everyone. Sorry for my bad English:
# May 27th 2017, 15:38 adithya @chris-andre thanks a lot!
# May 27th 2017, 13:37 chris-andre Can you gist me your action https://gist.github.com/ ?
# May 27th 2017, 13:37 joshuaso91 @chris-andre Array ( [supplier_id] => 1 [product_id] => 61 [date_entered] => 2000-00-00 00:00:00 [product_price] => 0.00 [notes] => no notes )
# May 27th 2017, 13:37 joshuaso91 @chris-andre nope it still doesnt save
# May 27th 2017, 13:36 noOne please?
# May 27th 2017, 13:35 joshuaso91 yea yea i know haha hold on i changed it
# May 27th 2017, 13:35 chris-andre No, no. Don't do that. You need to provide a value formatted the right way
# May 27th 2017, 13:34 joshuaso91 wait
# May 27th 2017, 13:34 noOne $routes->connect('/:controller/*', ['controller' => 'Departamento', ]);
# May 27th 2017, 13:34 noOne $routes->connect('/:controller/:action/*',['controller' => 'Departamento', ]);
# May 27th 2017, 13:34 noOne I really need this two lines, or how can I put this in one only?
# May 27th 2017, 13:34 joshuaso91 @chris-andre Array ( [supplier_id] => 1 [product_id] => 69 [date_entered] => datetime_format [product_price] => 0.00 [notes] => no notes )
# May 27th 2017, 13:34 noOne Hi guys.
# May 27th 2017, 13:33 chris-andre What is the value of your `$this->Form->control('date_entered', ['type' => 'hidden', 'value' => 'datetime_format'])`
# May 27th 2017, 13:32 joshuaso91 @chris-andre nope it still doesn't work haha
# May 27th 2017, 13:30 chris-andre I have no idea if default "CURRENT_TIMESTAMP" works.
# May 27th 2017, 13:30 joshuaso91 @chris-andre let me try that out
# May 27th 2017, 13:29 chris-andre Datetime field expects a value formated like `1000-01-01 00:00:00`
# May 27th 2017, 13:28 rudy1976s I would need to have the label as field property
# May 27th 2017, 13:28 chris-andre Post the output of `debug($your_entity)`
# May 27th 2017, 13:26 chris-andre Is that a debug of getData() ? The CURRENT_TIMESTAMP, something you modified before posting that debug?
# May 27th 2017, 13:25 rudy1976s Does cake has a way to declare table column labels directly in models ?
# May 27th 2017, 13:25 joshuaso91 nah it still didnt work
# May 27th 2017, 13:24 joshuaso91 unless i need to set a default value in my phpMyadmin
# May 27th 2017, 13:24 joshuaso91 weird.. it's passing the things i am looking when it's hidden. Array ( [supplier_id] => 1 [product_id] => 1 [date_entered] => CURRENT_TIMESTAMP [product_price] => [notes] => )
# May 27th 2017, 13:22 joshuaso91 okay let me check it
# May 27th 2017, 13:20 chris-andre Check if the value of your hidden field is posted `debug($this->request->getData());`, if it is there, check your entity before save.
# May 27th 2017, 13:18 chris-andre Have you debugged new/patched entity and save?
# May 27th 2017, 13:18 joshuaso91 nothing saved at all because of that hidden field @chris-andre that's why it was unsuccessfully saved
# May 27th 2017, 13:16 chris-andre The hidden field's value doesn't save, or does nothing save at all because of that hidden field?
# May 27th 2017, 13:13 joshuaso91 i won't work like i said above @chris-andre. I believe when i submit the form, it couldnt find the field values hence it failed to save
# May 27th 2017, 13:10 chris-andre @joshuaso91 dont you just use $this->Form->control('field', ['type' => 'hidden']) ?
# May 27th 2017, 13:07 iqu https://book.cakephp.org/3.0/en/core-libraries/time.html#formatting-relative-times
# May 27th 2017, 13:06 iqu ?
# May 27th 2017, 13:06 iqu cakephp uses chronos. How do i localize timeAgoInWords
# May 27th 2017, 13:04 joshuaso91 but i dont want to show the field if you know what i mean
# May 27th 2017, 13:04 joshuaso91 unless i do `echo $this->Form->control('date_entered', array ('readonly' => 'readonly'));`
# May 27th 2017, 13:03 joshuaso91 i used $this->Form->hidden(); but when i click submit, it wont let me add to the form
# May 27th 2017, 13:03 joshuaso91 hey guys, how do you hide a form field but still allow the form to add?