title: defaultAdapter in Zend Framework
body: <p>when i try to construct a query to my db in my model like </p>
  
  <pre><code>class Application_Model_DbTable_Resume extends Zend_Db_Table_Abstract
  {
  
  protected $_name = 'users';
  
  public function getFiveLastResume (){
  
     $select= $db-&gt;select()-&gt;from('users')-&gt;order("id DESC")-&gt;limit(5);
     $stmt = $db-&gt;query($select);
     $row = $stmt-&gt;fetchAll();       
     return $row;
  
     }
  }
  </code></pre>
  
  <p>so i have an error <code>Notice: Undefined variable: db</code> </p>
  
  <p>if I write adapter before query</p>
  
  <pre><code>   $db = Zend_Db::factory('PDO_MYSQL',array(
  'host'     =&gt; '127.0.0.1',
      'username' =&gt; 'root',
      'password' =&gt; '',
      'dbname'   =&gt; 'sport'       
  ));
  </code></pre>
  
  <p>thats work good. why does my adapter not work ?</p>
  
  <p>my application.ini contain right database config,cuz more simply queries work out good without  including adapter. im noob in zend, thanks </p>