settermjd / zf2forbeginners

The aim of this repository is to support the upcoming book - Zend Framework 2 For Beginners https://leanpub.com/zendframework2-for-beginners
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

baby-monitor/feeds/index not showing correct records. #14

Open FuLiu opened 9 years ago

FuLiu commented 9 years ago

Hi Matthew,

When I load the baby-monitor/feeds/index page, my database records are not showing on the page.

I have 4 records in my table, through debugging, I can see the records were correctly loaded from the table, at the $resultset of

'paginator' => $this->getPaginator($resultset) in indexAction() of FeedsController.php

but somehow, the records were not passed to the page down the line.

What are showing up on the page are 4 empty records with current date/time.

Any idea?

Thanks! Fujian

FuLiu commented 9 years ago

I managed to figure out what happened. It was that my database server returns all the table columns names in capital case; I needed to reflect that in the code.

Now I can see some records showing up at /baby-monitor/feeds/index; however, no pagination, I will investigate further later.

settermjd commented 9 years ago

@FuLiu sorry to never have responded. I just made a patch to the pagination code. Can you update and try again. If the issue persists, please let me know.