Hi.

I have some form. in controller i have:

$form = new App_Form_UserDetails();
if ($this->_request->isPost()) {
    if ($form->isValid($values)) {
        $user->setUserBasic($values);
    }
} else {
    $form->populate($user->toForm($id));
}

$this->view->form = $form;


Where $user is my model. and $values = $this->_request->getPost();
$values = Array
(
    [id] => 1
    [name] => Paweł Chuchmała
)

I want to add some Zend_Form_Element_File, for example 'photo',
'pet_photo', 'some_other_photo', and get $vallueas like this:
$values = Array
(
    [id] => 1
    [name] => Paweł Chuchmała
    [photo] => myphoto.jpg
    [pet_photo] = mypet.png
    [some_other_photo] = mysailingteam.jpg
)

How I can do this? Subclassing Zend_File_Transfer_Adapter_Http?

regards,

-- 
Paweł Chuchmała
pawel.chuchmala at gmail dot com

Reply via email to