php include path in zend

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
harrylynn
Forum Newbie
Posts: 6
Joined: Sat Feb 20, 2010 6:26 pm

php include path in zend

Post by harrylynn »

Hi everyone,

I've followed the tutorial on http://akrabat.com/2008/02/21/simple-zend_form-example/ and I've got this error. Fatal error: Class 'forms_ContactForm' not found in C:\xampp\htdocs\sandbox\app\controllers\IndexController.php on line 14. I saw that the author answered that we need to add application to php include path. Can somebody tell me how it's done and where ? I'm a complete noob to both php and zend framework. I'd be appreciated if anybody would help me on this matter. Besides, I'm doing it on xampp and my file path is C:\xampp\htdocs\formtutorial\ in that case how m i supposed to set the include path ? Thanks
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: php include path in zend

Post by Eran »

That tutorial is from February 2008. We are in March 2010. The framework has changed quite a bit
Post Reply