Creating a custom form element in Zend_Form?

Try $custom = new Custom_Form_Element_SwfUpload('upload').

Just noticed that myself, d'oh. – seengee Jan 13 '10 at 15:34.

This is what I ended up with, hope it helps someone else: in /application/forms/elements/SwfUpload. Php class Custom_Form_Element_SwfUpload extends Zend_Form_Element { public $helper = 'swfUpload'; # maps to method name in SwfUpload helper public function init() { $view = $this->getView(); $view->addHelperPath(APPLICATION_PATH. '/views/helpers/', 'Custom_Form_Helper'); } } in /application/views/helpers/SwfUpload.

Php class Custom_Form_Helper_SwfUpload extends Zend_View_Helper_FormElement { public function init(){} public function swfUpload() { $html = ' Upload upto 5 image files(jpg, png, gif), each having maximum size of 1MB(Use Ctrl/Shift to select multiple files) '; return $html; } }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions