title: zend pagination using DbSelect and DbTableSelect adapter
body: <p>I'm a beginner to zend framework...until now i was doing pagination by fetching all details from DB..my friend says that it is not a good way for pagination....
  he give me the following reference from Zend site...now i have some doubts...
  1.what is setRowCount?is it a field in the table?
  2.what is item_counts and RowCount?
  my DB name is sreejith.
  my table name is employee.
  the code is:</p>
  
  <pre><code> $adapter = new Zend_Paginator_Adapter_DbSelect($db-&gt;select()-&gt;from('posts'));
      $adapter-&gt;setRowCount(
      $db-&gt;select()
      -&gt;from(
     'item_counts', array(Zend_Paginator_Adapter_DbSelect::ROW_COUNT_COLUMN =&gt; 'post_count')
      )
      );
      $paginator = new Zend_Paginator($adapter);
  </code></pre>