If is the case that it behaves different in same cases you might want to
open a ticket - as this is then a bug.
Also, the book probably should be updated to show the html5 boolean
representation of such fields. If you can, please open a PR with the
proposed changes at github
Am Donnerstag, 19. September 2013 11:31:23 UTC+2 schrieb Ben Kennedy:
Morning all,
CakePHP 2.4.1 seems to drop boolean html attributes in some cases and not
others.
If I use
$this-Form-create(Recipe, array('data-attribute'=''));
Then Cakephp (2.4.1) will correctly output
form action='..' data-attribute
If I try the same on an input, for example:
$this-Form-input('name', array('type'='text', 'data-param'=''));
Then in this case the input will be created without the data-param
attribute.
Is this expected behaviour? I have been through the book and API and can't
find any mention of creating boolean attributes (i.e. no value), maybe I'm
trying to create them the wrong way?
Regards
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.