In my public/index.php I define the include path:
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
'/var/www/php_include/zend/1.11.7/library',
'/var/www/php_include/application',
get_include_path(),
)));
In my IndexController I want to reference to my Form with
new Form_Login();
But there I receive the error:
Fatal error: Class 'LoginForm' not found in /var/www/php_include/application/controllers/LoginController.php on line 31
Form is under application/forms/Login.php:
class Form_Login extends Zend_Form
{
public function init()
{
get_include_path() before using new LoginForm() throws:
/var/www/php_include/application/../library:/var/www/php_include/zend/1.11.7/library:/var/www/php_include/application:/var/www/php_include/application/forms:.:/var/www/php_include:/usr/share/pear/PEAR
Anyone knows how to get this working?