To display SQL of Zend_Db_Select object, try this


$query = $this->select()
->where("permitted = 'Y'")
->order("id DESC")
->limit($count);

echo $query->__toString();


that will do it.

0 comments



Some Links (off programming)