Sorry should have posted an update.
I had a type-o in the resources.db.adapter line. It was one of those "DOH!
head smack" things the next day.
Been running the last few weeks on only a few hours sleep a day, its
starting to catch up with me. I'm sure tomorrow when I look back on today's
code it will be very similar. Only ~6 more hours "hopefully" ... weeee
another 14hr day.... ugh
I need an "advance-to-Friday" card similar to the monopoly game's
advance-to-go card, anyone have one ?
Great now I'm blubbering... *sighs* - time for more caffeine.
Thanks for the reply though.
Terre
-----Original Message-----
From: Ralph Schindler [mailto:
ralph.schindler@...]
Sent: Tuesday, June 30, 2009 3:40 PM
To: Terre Porter
Cc:
fw-general@...
Subject: Re: [fw-general] isDefaultTableAdapter and Zend_Db_Table_Abstract
Silly question, but do you have the rest of the parameters set?
Minimally these two:
resources.db.adapter = ?
resources.db.params.dbname = ?
Also, what version of ZF is this?
-ralph
Terre Porter wrote:
> Hey all,
>
> I seem to not be able to get the default table adapter to load when
> accessing my dbtable class.
>
> A added the line in my config, "resources.db.isDefaultTableAdapter =
true".
>
> I'm using this,
>
http://framework.zend.com/docs/quickstart/create-a-model-and-database-> table,
> just the dbtable related stuff.
>
> I took the following classes and added them in to my setup. (names
> adjusted for the path changes)
>
> class Models_DbTable_Guestbook extends Zend_Db_Table_Abstract class
> Models_GuestbookMapper class Models_Guestbook
>
> They are loading but I always get the error, "No adapter found for
> Models_DbTable_Guestbook"
>
> Was there something else I needed to do other than the
> "resources.db.isDefaultTableAdapter = true" in the ini in order to use
> the db adapter?
>
> I'm using ZF version 1.8.
>
> Thank
> Terre
>
>