Text Area

text_area

Syntax:

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

Description:
Produces a textarea opening and closing tag set tailored for the $column_name of $object_name.
Additional options are to be passed with the $options array. The default is array('cols'=>40,'rows'=>20)
Example:

$form_helper->text_area('post', 'body', array('cols' => 20, 'rows' => 40));

produces

<textarea cols="20" rows="40" id="post_body" name="post[body]"> {post.body} </textarea>

text_area_tag

Syntax:

$form_tag_helper->text_area_tag($name,[ $content ],[ $options ])

Description:
Creates a text input area.
Options:

  • 'size' - A string specifying the dimensions of the textarea.

Example:

<?= $form_tag_helper->text_area_tag('body', null, array('size'=>'25x10')); ?>

produces

<textarea name="body" id="body" cols="25" rows="10"></textarea>
 
helper-textarea.txt · Last modified: 2008/03/06 23:05 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