Matthew Weier O wrote:
> 
> Did you call Zend_Db_Table::setDefaultAdapter()? This has to be done for
> your various table objects to have access to the adapter:
> 
>     // in your bootstrap...
>     $db = Zend::registry('db');
>     Zend_Db_Table::setDefaultAdapter($db);
> 
> Then, any Table object created will automagically have access to the
> database adapter.
> 

This is in my bootstrap index.php :
$db = Zend_Db::factory('PDO_MYSQL',$params);
Zend::register('db',$db);
Zend_Db_Table::setDefaultAdapter($db);

Yet it doesn't work. I can't automatically access find, quoteIn or other
functions, nor can I do :
$db=$this->getAdapter();
as that returns NULL

-- 
View this message in context: 
http://www.nabble.com/inheritance-not-working---tf2768458s16154.html#a7722641
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to