index.phtml
Código PHP:
   <?php
while ($rows = $this->fetch($this->$datos)){
 
echo $rows;
 
}
 
?>    Código PHP:
   <?php
 
class Application_Model_Datas extends Zend_Db_Table_Abstract
{
 
protected $_name = 'album';
 
    public function listar()
    {
$sql = 'SELECT * FROM album';
        $select = $this->select($sql);
 
 
 
         return $select;
        
    }
}    Código PHP:
   <?php
 
class IndexController extends Zend_Controller_Action
{
 
    public function init()
    {
        /* Initialize action controller here */
    }
 
    public function indexAction()
    {
                     $table = new Application_Model_Datas(); 
     
                     $this->view->datos = $table->listar();
    }
 
 
}    
 
 

