Zend framwork which db function do connection to the database
<p>Which zend db function connect to the database ?</p>

<pre><code>$select = new Zend_Db_Select(Zend_Db_Table::getDefaultAdapter());
$select-&gt;from(array("t" =&gt; "table1"), "*")
    -&gt;from(array("t2" =&gt; "table2"), null)
    -&gt;where("t.id&gt;0")
    -&gt;order("id");
$query = $select-&gt;query();
$lines = $query-&gt;fetchAll(Zend_Db::FETCH_OBJ);
</code></pre>

<p><strong>query();</strong></p>

<p>or </p>

<p><strong>fetchAll();</strong></p>