Update datefield.md

Removed ; at the end of ->setConfig('dmyfields', true) in the three chain example. Is confusing for new users/developers who are not aware of how to chain methods.

Closes #3006
This commit is contained in:
Chris Turner 2014-04-04 08:19:41 +13:00 committed by Simon Welsh
parent 068e23d72f
commit 32760555f7

View File

@ -56,7 +56,7 @@ HTML5 placeholders 'day', 'month' and 'year' are enabled by default.
:::php
DateField::create('MyDate')
->setConfig('dmyfields', true);
->setConfig('dmyfields', true)
->setConfig('dmyseparator', '/') // set the separator
->setConfig('dmyplaceholders', 'true'); // enable HTML 5 Placeholders
@ -148,4 +148,4 @@ sensitive`!
### 4. Filename
Use the original jQuery UI filename 'jquery.ui.datepicker-xx.js', where xx
stands for the locale.
stands for the locale.