Hi Jigal,
Is your models folder included in the include_path, the PHP environment variable?
Or are your models named properly according to the ZF standards?
Zend Framework will look for a folder according to your model class name, i.e., if your model class is called Model_ModelName, ZF will try to find it in root/Model/ModelName.php, where root is any path set in your include_path variable or any reachable folder for ZF.
Regards,
Ramses
Is your models folder included in the include_path, the PHP environment variable?
Or are your models named properly according to the ZF standards?
Zend Framework will look for a folder according to your model class name, i.e., if your model class is called Model_ModelName, ZF will try to find it in root/Model/ModelName.php, where root is any path set in your include_path variable or any reachable folder for ZF.
Regards,
Ramses
On Wed, Sep 24, 2008 at 2:12 PM, Jigal sanders <jigalroecha@gmail.com> wrote:
Hello all,
I have a question.
In my boodstrap file I use the autoloader which loads all the classes which I need correctly. But in my controllers, whenever I want to use a class which exists in my models follder i have to use require_once('filename ');
Is this correct or is there a way to do this in a way like the autoloader?
Thanks in advance,
J. Sanders
没有评论:
发表评论