you need to wrap the SQL query() string inside query() before passing it to anything else, otherwise ZF doesn't know what you're saying
$db = new Application_Model_DbTable_Example(); // if you've created a model for your db $select = $db->query("SELECT * FROM table WHERE value='varstring'")->fetchAll;
and then you can send this to a paginator
source share