Thank you Rolando. Like u said I just needed to inlcude the class: require_once APPLICATION_PATH . '/forms/ContactForm.php'; and as u said I will prefer to use the pluginloader script that u send me THANK YOU very much for the quick answer!
Rolando Espinoza La Fuente wrote: > > On Fri, Nov 28, 2008 at 5:42 PM, luisfqr <[EMAIL PROTECTED]> wrote: > [:::] >> >> Fatal error: Class 'forms_ContactForm' not found in >> /home/hsphere/local/home/wwwuser/zend.bizhelper.com/application/controllers/ChartsController.php >> on line 13 >> > > Afaik, zf does not auto-discover your forms or models, you can add > your forms path to your includes path in your bootstrap (not > recommended), > or include by hand in your controller: > require_once APPLICATION_PATH . '/forms/ContactForm.php'; > > But the best option will be to use a helper/pluginloader. You can see > an implementation of this helper on "bugapp" zend application: > http://is.gd/9qty > > -- > Rolando Espinoza La fuente > Pro Soft Resources Inc. > www.prosoftpeople.com > > -- View this message in context: http://www.nabble.com/QUestion-about-Classes-tp20740861p20741270.html Sent from the Zend Framework mailing list archive at Nabble.com.
