Password Field

password_field

Syntax:

$form_helper->password_field( $object_name, [ $column_name ], [ $options ])

Description:
Returns an input tag of the “password” type tailored for accessing the attribute identified by $column_name on the object $object_name.
Additional options are to be passed as an array with $options. Options:

  • 'disabled' - If set to true, the user will not be able to use this input.
  • 'size' - The number of visible characters that will fit in the input.
  • 'maxlength' - The maximum number of characters that the browser will allow the user to enter.

Example:

$form_helper->password_field("post", "pwd", array("size" => 20));

produces this PHP code:

<input type="password" id="post_pwd" name="post[pwd]" size="20" value="{post.pwd}" />

password_field_tag

Syntax:

$form_tag_helper->password_field_tag( [ $name = 'password'], [ $value ], [ $options ])

Description:
Returns an input tag of the “password” type. The result must be processed by helper code or in the controller. Additional options are to be passed as an array with $options. Options:

  • 'disabled' - If set to true, the user will not be able to use this input.
  • 'size' - The number of visible characters that will fit in the input.
  • 'maxlength' - The maximum number of characters that the browser will allow the user to enter.
 
helper-passwordfield.txt · Last modified: 2008/03/06 22:33 by alake
 

The Akelos Framework was created by Bermi Ferrer and other contributors.
Potions of the code and documentation have been ported from Ruby on Rails.

The Akelos Framework is released under the LGPL license.

"Akelos", "Akelos Framework", and the Akelos logo are trademarks of Bermi Labs All rights reserved.

Wiki driven by DokuWiki