ZF-11417: Example code not valid in [Getting Started with Zend_Paginator]

Description

http://framework.zend.com/manual/en/…


$select = $db->select()->from('posts')->sort('date_created DESC');

should be


$select = $db->select()->from('posts')->order('date_created DESC');

foreach ($this->paginator as $item) {
    echo '' . $item->title . '';
}

should be


foreach ($this->paginator as $item) {
    echo '' . $item["title"] . '';
}

Comments

Fixed in ZF2 with GH-400