Skip to content

Main page does not show records #2

Open
@johnchadwick

Description

Using the code downloaded and just adding local.php and a modication to global.php for the database connection:

Regarding loading the index page for the first time:
public function indexAction
if (!is_null($this->_cache)) { //this always evaluates to true
!$this->_cache->hasItem(self::KEY_ALL_RESULTS) //this always evaluates to false
//Therefore fetchMostRecentFeeds never gets run so no records are displayed.

// (!is_null($this->_cache)) { // replaced with:
if (!isset($this->_cache)) {
// Then it runs and this shows I have a record:
exit(var_dump($resultset));

// However index.phtml calls:
'babymonitor/feeds/results/search/default' => DIR . '/../view/baby-monitor/feeds/feed-results.phtml'
// feed-results.phtml calls $this->paginator
// However in FeedsController indexAction there is no reference to paginator, but searchAction does.

//I'm stuck, thanks.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions