i 在模型目录中有许多等级,这些等级是Zend_Db_Table_Abstract。
但是,需要使用zen子,而这种需要是Zend_Db_Select!
在使用该守则时(产品) 类别
$productCat = new ProductCat();
$rows = $productCat->FetchOrderByPriority();
// Get a Paginator object using Zend_Paginator s built-in factory.
$paginator = Zend_Paginator::factory($rows);
$this->view->paginator = $paginator;
它不工作!
它向我表明这一错误:
Catchable fatal error: Object of class Zend_Db_Table_Row could not be converted to string in
this is my view code :
<ul><?php foreach ($this->paginator as $item): ?>
<li><?php echo $item; ?></li><?php endforeach; ?></ul>
是否有任何想法?