Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-25-2008, 06:51 AM
Member
 
Join Date: Jun 2007
Posts: 33
Default Simple problem loading a class

I've upgraded to ZF 1.5, and getting an error loading my form class.

This is my include path: set_include_path('.' . PATH_SEPARATOR . './library' . PATH_SEPARATOR . './applications/forms' . PATH_SEPARATOR . './application/models/' . PATH_SEPARATOR . get_include_path());

I've got my forms located here:
/application/forms

My file is called RegisterForm.php and the class name is: class RegisterForm extends Zend_Form

In my user controller I load it here: Zend_Loader::loadClass('RegisterForm');

The error I get is: Fatal error: Uncaught exception 'Zend_Exception' with message 'File "RegisterForm.php" was loaded but class "RegisterForm" was not found in the file' in /home/tplgame/public_html/library/Zend/Loader.php:88 Stack trace: #0 /home/tplgame/public_html/application/controllers/UsersController.php(110): Zend_Loader::loadClass('RegisterForm') #1 /home/tplgame/public_html/library/Zend/Controller/Action.php(502): UsersController->newAction() #2 /home/tplgame/public_html/library/Zend/Controller/Dispatcher/Standard.php(293): Zend_Controller_Action->dispatch('newAction') #3 /home/tplgame/public_html/library/Zend/Controller/Front.php(914): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #4 /home/tplgame/public_html/index.php(49): Zend_Controller_Front->dispatch() #5 {main} thrown in /home/tplgame/public_html/library/Zend/Loader.php on line 88

Any help is greatly appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-27-2008, 04:24 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

PHP Code:
This is my include pathset_include_path('.' PATH_SEPARATOR './library' PATH_SEPARATOR './applications/forms' PATH_SEPARATOR './application/models/' PATH_SEPARATOR get_include_path());

Ive got my forms located here:
/
application/forms 

one says applicationS the other says application. This could be the source of your error
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-30-2008, 03:46 AM
Junior Member
 
Join Date: Mar 2008
Posts: 1
Default

dear use c++ or a java language it may solve ur problem.
__________________
anime
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-01-2008, 06:19 AM
Junior Member
 
Join Date: Mar 2008
Location: BC
Posts: 6
Default

Quote:
Originally Posted by upperrq View Post
dear use c++ or a java language it may solve ur problem.
Interesting. C++ and Java don't use file paths? They have advanced a lot!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:35 PM.