title: Zend Framework: Select query
body: <p>I'm newbie on <strong>Zend Framework</strong>, I created DbTable , my primary key is <strong>id</strong> , and my table name is <strong>user</strong>:</p>
  
  <pre><code>&lt;?php
  
  class Application_Model_DbTable_User extends Zend_Db_Table_Abstract
  {
  
      protected $_name = 'user';
      protected $_primary = 'id';
  
  }
  </code></pre>
  
  <p>after that ,I reviewed <strong>Abstract.php</strong>(Db/Table/Abstract.php) and I found out that I had to use <em>insert(array $data)</em>, so I created a model: (<strong>Register.php</strong>)</p>
  
  <pre><code>&lt;?php
  
  class Application_Model_Register
  {
      public function CreateUser($array)
      {
          $dbTableUser = new Application_Model_DbTable_User();
          $dbTableUser -&gt; insert($array);
      }
  
  }
  </code></pre>
  
  <p>and finally , in my Controllers , I created <strong>IndexController.php</strong> </p>
  
  <pre><code>&lt;?php
  class IndexController extends Zend_Controller_Action
  {
      public function init()
      {
          /* Initialize action controller here */
      }
  
      public function indexAction()
      {
          $register = new Application_Model_Register();
          $register-&gt; CreateUser(array(
                 'username'=&gt;'test'));
      }
  }
  </code></pre>
  
  <p>It works correctly , but I have no idea about Select, How I select query from user table?</p>