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+unsubscribe@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.
No comments:
Post a Comment