1

Zend_Form の textarea タグに情報を入れるにはどうすればよいですか? 例えば:

<textarea name="descNews" id="descNews" rows="5" class="txt_meta" cols="80">This is text!</textarea>

Zendフォーム:

$description = new Zend_Form_Element_Textarea('descNews');
    $description->addFilter('StripTags')
                ->setAttribs(array(
                'rows'        => '5',
                'class'       => 'txt_meta'
        ));
4

1 に答える 1