Thanks for your reaction Dan.
I alredy solved it yesterday  with help of the zend IRC.

But thanks anyways. This was indeed the solution.

On Thu, Nov 26, 2009 at 10:09 AM, Dan Field <d...@llgc.org.uk> wrote:

> It's not due to the fact that you have used 2 underscore characters instead
> of just the 1 which is usual for protected methods is it? I know that
> Zend_Application looks for functions named initSomething but I don't know
> the expression it uses to identify them.
>
> On 25 Nov 2009, at 17:24, Jigal Sanders wrote:
>
> Thats exactly how i have it in zf version 1.9.5
>
> On 25 nov 2009, at 18:18, Matthew Weier O'Phinney <matt...@zend.com>
> wrote:
>
> -- Jigal sanders <jigalroe...@gmail.com> wrote
>
> (on Wednesday, 25 November 2009, 05:56 PM +0100):
>
> Just created a project with zend tool.
>
>
> In my bootstrap file I have :
>
>
> protected function __initAutoload(){
>
>
>       $autoloader = new Zend_Application_Module_Autoloader(array(
>
>           'namespace' => '',
>
>           'basePath'  => APPLICATION_PATH,
>
>       ));
>
>       return $autoloader;
>
>    }
>
>
> Now i have in my folder "application/forms" a file LoginForm.php.
>
> in it is a class called class Form_LoginForm extends Zend_Form.
>
>
> Now when i do in my controller $form = new Zend_LoginForm()
>
>
> i get Fatal error: Class 'Form_LoginForm' not found in
> K:\xampp\htdocs\nrka\
>
> application\controllers\AuthenticationController.php on line 22
>
>
> I'm a bit confused -- what is the class called, and how are you trying
>
> to invoke it? Based on the information you've provided, it should be:
>
>
>   application/
>
>       forms/
>
>           LoginForm.php -> contains class Form_LoginForm
>
>
> This should work, based on the information provided. If it doesn't, can
>
> you please indicate what version of ZF you are using?
>
>
> --
>
> Matthew Weier O'Phinney
>
> Project Lead            | matt...@zend.com
>
> Zend Framework          | http://framework.zend.com/
>
>
>   --
> Dan Field <d...@llgc.org.uk>                   Ffôn/Tel. +44 1970 632 582
> Peiriannydd Meddalwedd                          Senior Software Engineer
> Llyfrgell Genedlaethol Cymru                   National Library of Wales
>
>
>
>
>


-- 
Met vriendelijke groet,

Jigal Sanders
A.J. Ernststraat 739
1082 LK Amsterdam
Mobiel: 06-42111489

Reply via email to