Joe--I have to study this more closely, but from the table you have provided, it would appear that certain assumptions are being made by the autoloader I'm not aware of...too bad this table isn't in the docs ;-) Thanks--I will study your suggestions and see if I can end my 2 day loss of time.
joedevon wrote: > > > spaceage wrote: >> >> I should add that 'model' and 'models' were being used interchangeably in >> both of our posts, and I've updated everything to be 'models'/'Models' >> throughout... >> > I don't know how I missed this post...I wasn't using model and models > interchangeably...You need to remove plural from new Models_Login to > Model_Login and also no plural in the class.... > > Taking from Rob's excellent tutorial: > > The module autoloader will autoload classes with a certain prefix that are > in > certain directories within application/ as per this table: > > Directory | Prefix | Example > ================================= > api | Api_ | Api_Rest > forms | Form_ | Form_Login > models | Model_ | Model_News > models/DbTable | Model_DbTable_ | Model_DbTable_News > plugins | Plugin_ | Plugin_ > > Hope that table comes out ok...so according to this, the autoloader looks > in the file and reads the class name, so putting zend form in the models > directory is messing you up unless I read Rob incorrectly.... > -- View this message in context: http://www.nabble.com/Zend_Application-and-autoloading-tp23987637p23991928.html Sent from the Zend Framework mailing list archive at Nabble.com.
