Mat

Thanks for this reply.

The trouble I have now is that there doesnt seem to be any "File" form element??

<input type="file" name="somename" size="chars">

Is this an oversight or is there some other method of doing this - I checked that you can do an Image type with a decorator but again couldnt see File.

I can see the File helper in the Views/Helper/FormFile.php

But how do I access basically

Cheers

Ian

Matthew Weier O'Phinney wrote:
-- Ian Warner <[EMAIL PROTECTED]> wrote
(on Monday, 17 March 2008, 03:28 PM +0000):
Couple of questions

1. how do I do this - enctype="multipart/form-data" to do a file upload

    $form->setAttrib('enctype', 'multipart/form-data');

2. How do I set the Columns and rows of a TextArea.

    $element->rows = 20;
    $element->cols = 30;

    // or:
    $element->setAttrib('rows', 20)
            ->setAttrib('cols', 30);

    // or:
    $element->setAttribs(array(
        'rows' => 20,
        'cols' => 30
    ));

    // or, in your config:
    element.rows = 20
    element.cols = 30

Reply via email to