Studyon Minte9.com
ZF 1.0




Extend



#controller
...
public function loginAction() {
	
	$form = new Zfsite_Form(); // instead of Zend_Form

	$username = $form->createElement('text','username');
	$username->setRequired(true);
	$username->setLabel('Username');
	$form->addElement($username);

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


#Application/library/My/Form.php
<?php
class My_Form extends Zend_Form {
	public function render(Zend_View_Interface $view = null) {
		$content = parent::render();
		$content .= "This is a Zfsite Form";
		return $content;            
	}
}