Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct(__CLASS__);
     $this->setAttribute('method', 'post');
     $this->setAttribute('enctype', 'multipart/form-data');
     $this->init();
 }
Exemplo n.º 2
0
 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);
 }