public function __construct() { parent::__construct(__CLASS__); $this->setAttribute('method', 'post'); $this->setAttribute('enctype', 'multipart/form-data'); $this->init(); }
public function __construct() { parent::__construct(__CLASS__); $this->setAttribute('method', 'post'); $this->setAttribute('enctype', 'multipart/form-data'); $to = new Element\Text('to'); $to->setLabel("Send To"); $this->add($to); $subject = new Element\Text('subject'); $subject->setLabel("Subject"); $this->add($subject); $message = new Element\Textarea('message'); $message->setLabel("Message"); $this->add($message); $send = new Element\Submit('send'); $send->setValue('Send'); $this->add($send); }