title: Unable to connect to MySQL in Zend
body: <p>I am trying to connect mysql table(Authentication) in zend application using <a href="http://framework.zend.com/manual/en/learning.quickstart.create-model.html" rel="nofollow noreferrer">this tutorial</a>. But unable to get instance of DbTable. I only changed the <a href="https://stackoverflow.com/questions/4483151/how-can-i-reduce-my-class-name-in-zend-to-call-it-from-any-where-in-application">directory structure</a> in my application.</p>
  
  <p>I have <strong>Mapper</strong> something like this:</p>
  
  <pre><code>class Model_Authentication_Mapper {
  
      protected $_dbTable;
  
      public function setDbTable( $dbTable ) {
  
          if (is_string( $dbTable ) ) {
              $dbTable = new $dbTable();
          }
          if ( !$dbTable instanceof Zend_Db_Table_Abstract ) {
              throw new Exception( 'Invalid table data gateway provided' );
          }
          $this-&gt;_dbTable = $dbTable;
          return $this;
      }
  
      public function getDbTable() {
  
          if (null === $this-&gt;_dbTable) {
              $this-&gt;setDbTable( 'Model_Authentication_DbTable' );
          }
          return $this-&gt;_dbTable;
      }
  
      public function getRecordById( $id ) {
       $table = $this-&gt;getDbTable();
       // Other code here
      }
  
  }
  </code></pre>
  
  <p>And <strong>DbTable</strong> like this:</p>
  
  <pre><code>class Model_Authentication_DbTable extends Zend_Db_Table_Abstract {
      protected $_name    = 'Authentication';
  }
  </code></pre>
  
  <p>When It execute <code>$table = $this-&gt;getDbTable();</code> in Mapper it gives me following error in firebug console:</p>
  
  <pre><code>An error occurred
  Application error
  Message: No adapter found for Model_Authentication_DbTable
  </code></pre>
  
  <p>How to set adapter for this DbTable ?</p>
  
  <p>Anyone know about this ??</p>
  
  <p>Thanks</p>