$db = Zend_DB::factory($config->database);
Zend_DB_Table_Abstract::setDefaultAdapter($db);
It was in the ref guide.
11.5.3. Creating an Instance of a Table
I can never seem to find anything until I print it out.
411161 wrote:
>
> I a doing something really simple:
>
> Oracle table is sessiondata
>
> class name Sessiondata.php
> class Sessiondata extends Zend_Db_Table_Abstract
> {
> // table name matches class name
> }
>
> In my controller I have:
> $t = new Sessiondata();
>
> The error I get is:
> Message: No adapter found for Sessiondata
>
> And I am also having the hardest time with table names with underscores.
>
--
View this message in context: http://www.nabble.com/No-adapter-found-error-tp19769901p19781857.html
Sent from the Zend DB mailing list archive at Nabble.com.
没有评论:
发表评论