Fatal error: Class 'Authentication_Form_Login' not found in C:\xampp\htdocs\zf\application1\application\module s\default\controllers\IndexController.php on line 8
Pongo los códigos susceptibles al error, a ver si vosotros lo veis y podeis ayudarme porfavor:
Código PHP:
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] =
Código PHP:
// \application\modules\default\controllers\IndexController.php
class IndexController extends Zend_Controller_Action {
public function init() {
}
public function indexAction() {
$form = new Authentication_Form_Login();
$this->view->form = $form;
}
}
Código PHP:
// \application\modules\authentication\forms\Login.php
// Obviamente el form es un Proof of concept, faltan validadores etc...
class Authentication_Form_Login extends Zend_Form
{
public function __construct($option = null) {
parent::__construct($option);
$this->setName('login');
$username = new Zend_Form_Element_Text('username');
$username->setLabel('User name:')
->setRequired();
$password = new Zend_Form_Element_Password('password');
$password->setLabel('Password:')
->setRequired(true);
$login = new Zend_Form_Element_Submit('login');
$login->setLabel('Login');
$this->addElements(array($username, $password, $login));
$this->setMethod('post');
$this->setAction(Zend_Controller_Front::getInstance()->getBaseUrl().'/authentication/login');
}
}
Código PHP:
// Tengo Bootstrap en /application/modules/authentication/Bootstrap.php
class Authentication_Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
}
// Tengo Bootstrap en /application/Bootstrap.php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
}
/*
* Pero si intento poner uno /application/modules/default/Bootstrap.php al
* actualizar la aplicación se queda cargando hasta el infinito, solo para cuando
* da error de carga.
*/
Muchas gracias !!