form::textarea PHP Method

textarea() public static method

public static textarea ( $name, $value = '', $attributes = [] )
    public static function textarea($name, $value = '', $attributes = array())
    {
        $attributes['name'] = $name;
        if (!isset($attributes['rows'])) {
            $attributes['rows'] = 10;
        }
        if (!isset($attributes['cols'])) {
            $attributes['cols'] = 50;
        }
        return Html::element('textarea', $value, $attributes);
    }

Usage Example

コード例 #1
0
ファイル: index.php プロジェクト: juan88ac/foundation_s
function meta_acpt_slide_options()
{
    $form = new form('slide', null);
    $form->image('image', array('label' => 'Image URL', 'help' => 'Upload an Image that is 940px by 350px for best results', 'button' => 'Add Your Slide'));
    $form->text('headline', array('label' => 'Headline'));
    $form->textarea('description', array('label' => 'Description'));
    $form->select('showText', array('Yes', 'No'), array('label' => 'Show Headline and Description'));
}
All Usage Examples Of form::textarea