dshuck
Feb 6th 2008, 12:20 pm
I have am just starting out my first CakePHP app, and have a question about the form html helpers.
When I do this....
<?php echo $html->inputTag('User/username', array('size' => '40')) ?>
...it appears that the size attribute is ignored. In fact, the only attributes that are created are name and value like this:
<input name="data[User][username]" value="" />
Just for experimentation purposes, when I change "inputTag" to "passwordTag", it appears that all the attributes are created properly like this:
<input type="password" name="data[User][username]" size="40" value="" id="UserUsername" />
Does anyone have any idea what I am missing in order to leverage the inputTag() method?
When I do this....
<?php echo $html->inputTag('User/username', array('size' => '40')) ?>
...it appears that the size attribute is ignored. In fact, the only attributes that are created are name and value like this:
<input name="data[User][username]" value="" />
Just for experimentation purposes, when I change "inputTag" to "passwordTag", it appears that all the attributes are created properly like this:
<input type="password" name="data[User][username]" size="40" value="" id="UserUsername" />
Does anyone have any idea what I am missing in order to leverage the inputTag() method?