Matt
Appreciate your quick repsonse again.
I wasnt so much interested in a complete File solution as just being
able to get the HTML output for a file input type.
I.e. -- <input type="file" name="somename" size="chars" />
I look forward to the solution from Thomas though.
Ian
Matthew Weier O'Phinney wrote:
-- Ian Warner <[EMAIL PROTECTED]> wrote
(on Monday, 31 March 2008, 02:30 PM +0100):
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
Not an oversight, and frequently asked and answered.
Thomas is working on a standalone Zend_Upload/Transfer component. Once
this is complete, we will provide a File element that utilizes it.
There wasn't enough time to try and provide a File element for 1.5.0,
particularly when there were plenty of opinions flying around on how
Zend_Upload/Transfer/WhateverWereGoingToCallIt was going to work -- I
didn't want to need to go back and re-tool to support that, nor create
something that there we hadn't settled on an interface for yet.
In the meantime, ask around on #zftalk, as a few people have created
their own versions of a File element that they may be willing to share.
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