so basically you can use zend
paginate via the following:
$sql = new Zend_Db_Select($db);
$sql->from(table);
$sql->where(zend_db_select_sucks = 1);
$paginator = Zend_Paginator::factory($sql);
is there a way to use paginator such that you can set $sql
yourself without using zend_db_select
so just
$sql = "SELECT * FROM table WHERE zend_db_select_sucks = 1"
$paginator = Zend_Paginator::factory($sql);
?
Isn't the point of the Paginator factory that you can also pass it a rowset and it will paginate that too? I just tried this out and it seemed to work for me (even though I usually use Zend_Db_Select)
$db = Zend_Db_Table::getDefaultAdapter();
$rowset = $db->query('SELECT * FROM user')->fetchAll();
$paginator = Zend_Paginator::factory($rowset);