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 :::php
DateField::create('MyDate') DateField::create('MyDate')
->setConfig('dmyfields', true); ->setConfig('dmyfields', true)
->setConfig('dmyseparator', '/') // set the separator ->setConfig('dmyseparator', '/') // set the separator
->setConfig('dmyplaceholders', 'true'); // enable HTML 5 Placeholders ->setConfig('dmyplaceholders', 'true'); // enable HTML 5 Placeholders