zf can not autoload models and forms

3 messages Options
Embed this post
Permalink
huajun qi

zf can not autoload models and forms

Reply Threaded More More options
Print post
Permalink
I create a project, the application directory looks like this:

application:
controllers
configs
models
User.php---- class Model_User
forms
User.php---- class Form_user
vies
bootstrap.php

When I try to use Model_User or Form_User class, error occurs that class can not be found!

How to make them autoloaded?



--
Location:
Tobias Neumann-3

Re: zf can not autoload models and forms

Reply Threaded More More options
Print post
Permalink
Hello,
it is the question how you create the new project. Did you use
Zend_Tool (zf create ...) on the command line?
Then everything should work -> see QuickStart Documentation.

regards,

2009/10/16 huajun qi <[hidden email]>:

> I create a project, the application directory looks like this:
> application:
>
> controllers
> configs
> models
>
> User.php---- class Model_User
>
> forms
>
> User.php---- class Form_user
>
> vies
> bootstrap.php
>
> When I try to use Model_User or Form_User class, error occurs that class can
> not be found!
> How to make them autoloaded?
>
>
> --
> Location:
>
huajun qi

Re: zf can not autoload models and forms

Reply Threaded More More options
Print post
Permalink
ok, I will try!

2009/10/16 Tobias Neumann <[hidden email]>
Hello,
it is the question how you create the new project. Did you use
Zend_Tool (zf create ...) on the command line?
Then everything should work -> see QuickStart Documentation.

regards,

2009/10/16 huajun qi <[hidden email]>:
> I create a project, the application directory looks like this:
> application:
>
> controllers
> configs
> models
>
> User.php---- class Model_User
>
> forms
>
> User.php---- class Form_user
>
> vies
> bootstrap.php
>
> When I try to use Model_User or Form_User class, error occurs that class can
> not be found!
> How to make them autoloaded?
>
>
> --
> Location:
>



--
Location: