Loans - Internet Advertising - Credit Cards - CRM Software Small Busines - Credit Counseling

PDA

View Full Version : CakePHP question about html helpers


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?

dshuck
Feb 6th 2008, 12:33 pm
Well, apparently the docs I am reading are dated. I noticed that they current API uses input() instead of inputTag(). Additionally the current API seems to support password() in addition to passwordTag().

case closed....