Hi!
I`m working with zend framework 1.11 and I have problem with loading its models and forms. So, when I try get instance of some model($model = new Model_SendMail()) class I see an error:
Fatal error: Class 'Model_SendMail' not found in /home/adrian/www/mailer-zend/application/controllers/SendController.php on line 27
I also tried get instance of Application_Model_SendMail but it return me error too.
I don`t use any autoloader in my bootstrap.
Please, help me
[ZendFramework] Problem with loading models and forms
Started by AdrianWierciochPHP, Jan 11 2011 02:29 PM
1 reply to this topic
#1
Posted 11 January 2011 - 02:29 PM
|
|
|
#2
Posted 11 January 2011 - 02:38 PM
I have resolved it :P
zf script which I use to create models, forms etc. creates me just models and forms without "Application_" prefix in name of their. I must add it to name (Application_Model_SendMail instead of Model_SendMail)
zf script which I use to create models, forms etc. creates me just models and forms without "Application_" prefix in name of their. I must add it to name (Application_Model_SendMail instead of Model_SendMail)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









