Alex (SirShurf) Frenkel's Blog

A web log of a PHP professional

Zend Framework – Howto Autoload a model inside your module!

leave a comment »

I have lost about an hour today battling this. I have a normal ZF directory structure:










But for some reasone  file located in /admin/moduls was not loaded authomaticly.

The problem was in missing Bootstrap.php located in the module root directory. It looks like this extention from Zend_Application_Module_Bootstrap makes the trick.

So all you have to do is to add a class:

class Admin_Bootstrap extends Zend_Application_Module_Bootstrap {}

And it will work!


Written by Alex (Shurf) Frenkel

August 28, 2011 at 1:38 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: