title: i am working with zend queue i wrote a piece of code in bootstrap its showing an error can anyone help me
body: <p>I am new to Zend Framework and I am trying to work with <code>Zend_Queue</code>.  I placed this piece of code in the bootstrap but it is throwing an exception.  The code in Bootstrap.php:</p>
  
  <pre><code>&lt;?php
  class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
  
      protected function _initDatabase() {
          $options = array(
              'name' =&gt; 'queue',
              'driverOptions' =&gt; array (
                  'host'          =&gt; '127.0.0.1',
                  'port'          =&gt; '3306',
                  'username'      =&gt; 'root',
                  'password'      =&gt; '',
                  'dbname'        =&gt; 'queue',
                  'type'          =&gt; 'pdo_mysql'
              )
          );
      }
  
      protected function _initQueue() {
          $options = $this-&gt;getOptions();
          $queueAdapter = new Zend_Queue_Adapter_Db($options['queue']);
  
          Zend_Registry::getInstance()-&gt;queueAdapter = $queueAdapter;
      }
  }
  </code></pre>
  
  <p>And this is the error I am getting:</p>
  
  <pre><code>Fatal error: 
    Uncaught exception 'Zend_Queue_Exception' with message 'Adapter options must be an array or Zend_Config object' in
  C:\wamp\library\ZendFramework\library\Zend\Queue\Adapter\AdapterAbstract.php:110 Stack trace: #0 
  C:\wamp\library\ZendFramework\library\Zend\Queue\Adapter\Db.php(83): Zend_Queue_Adapter_AdapterAbstract-&gt;__construct(NULL, NULL) #1
  C:\wamp\www\queue2\application\Bootstrap.php(28): Zend_Queue_Adapter_Db-&gt;__construct(NULL) #2 C:\wamp\library\ZendFramework\library\Zend\Application\Bootstrap\BootstrapAbstract.php(667): Bootstrap-&gt;_initQueue() #3
  C:\wamp\library\ZendFramework\library\Zend\Application\Bootstrap\BootstrapAbstract.php(620): Zend_Application_Bootstrap_BootstrapAbstract-&gt;_executeResource('queue') #4
  C:\wamp\library\ZendFramework\library\Zend\Application\Bootstrap\BootstrapAbstract.php(584): Zend_Application_Bootstrap_BootstrapAbstract-&gt;_bootstrap(NULL) #5 
  C:\wamp\library\ZendFramework\library\Zend\Application.php(355): Zend_Application_Bootstrap_BootstrapAbstract-&gt;bootstrap(NULL) #6
  C:\wamp\w in C:\wamp\library\ZendFramework\library\Zend\Queue\Adapter\AdapterAbstract.php on line 110
  </code></pre>