Jump to content

[ZendFramework] Problem with loading models and forms

- - - - -

  • Please log in to reply
1 reply to this topic

#1
AdrianWierciochPHP

AdrianWierciochPHP

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
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

#2
AdrianWierciochPHP

AdrianWierciochPHP

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
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)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users