
Mam problem z stworzeniem formularza w zend czytam dokumentacje ale nie wszystko rozumie

kontroler
<?php class RejController extends Zend_Controller_Action { public function getForm() { return $form; } public function indexAction() { require_once APPLICATION_PATH . '/forms/Rej.php'; } } ?>
widok
/forms/Rej.php
<?php $form = new Zend_Form(); $form->setAction('rej/wys'); $form->setMethod('post'); //tworzenie nowego pola username $username=$form->createElement('text','username'); // Tworzenie nowego pola password $password=$form->createElement('password','password'); $form->addElement($username)->addElement($password)->addElement('submit','login'); ?>
Bardzo bym prosił o pokazanie co robię zle ze formularz mi się nie pokazuje
