Hi,
I am using Doctrine, my classes live in /models/ and are named simply, e.g
Users.php. I can load them using:
$u = Doctrine::getTable('Users');
this works fine. How would I modify the auto loader so I can also do:
$u = new Users();
?
I really get tired of typing Default_Model_Users everywhere :) I guess I
could use D_Users(), or M_Users() ?
This is my _initAutoload:
protected function _initAutoload()
{
$autoloader = new Zend_Application_Module_Autoloader(array(
'namespace' => 'Default_',
'basePath' => dirname(__FILE__),
));
return $autoloader;
}
Thanks,
monk.e.boy
--
View this message in context:
http://n4.nabble.com/auto-loader-question-tp1563248p1563248.html
Sent from the Zend Framework mailing list archive at Nabble.com.