Issues

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

Issue Type: Docs: Problem Created: 2011-05-30T09:05:09.000+0000 Last Updated: 2011-09-09T21:56:05.000+0000 Status: Resolved Fix version(s): - Next Major Release ()

Reporter: netroby (netroby) Assignee: Thomas Weidner (thomas) Tags: - Zend_Paginator

Related issues: Attachments:

Description

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

<pre class="highlight">
$select = $db->select()->from('posts')->sort('date_created DESC');

should be

<pre class="highlight">
$select = $db->select()->from('posts')->order('date_created DESC');



<pre class="highlight">
foreach ($this->paginator as $item) {
    echo '' . $item->title . '';
}

should be

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

Comments

Posted by Thomas Weidner (thomas) on 2011-09-09T21:56:05.000+0000

Fixed in ZF2 with GH-400

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts