In my Zend Framework project I have the forms folder in which I have a form
class Application_Forms_Loginextends Zend_Form { public function init() { $this->setMethod('post'); $username = $this->createElement('text', 'username'); $username->setLabel('Username')->setAttrib('maxLength', 75); $password = $this->createElement('password', 'password'); $password->setLabel('password:')->setAttrib('maxLength', 75); $signin = $this->createElement('submit', 'signin'); $signin->setLabel("sign in")->setIgnore(true); $this->addElements(array( $username, $password, $signin )); } }
I use this class in a UserController, but this error appears
Fatal error: Class 'LoginForm' not found in edit:
public function loginAction() { $users = new Application_Model_Users(); $form = new Application_Forms_Login(); $this->view->form = $form; } Now I am getting this error
Warning: include_once(Application/Forms/Login.php): failed to open stream: No such file or directory in /home/myFolder/public_html/library/Zend/Loader.php edit: added project structure
