Welcome Guest, Not a member yet? Register   Sign In
Pagination is returning blank page
#1

[eluser]NateL[/eluser]
Following Day 7 of Jeff Way's CI From Scratch Tutorials, Pagination. I've followed everything almost down exactly, and my page is still showing up blank. What am I doing wrong?

Controller: portfolio.php
Code:
class Portfolio extends Controller
{
    function index()
    {
        $this->load->library('pagination');
        
        $config['base_url'] = 'http://mytester.example.com/portfolio/';
        $config['total_rows'] = $this->db->get('portfolio')->num_rows();
        $config['per_page'] = 5;
        $config['num_links'] = 10;
        
        $this->pagination->initialize($config);
        
        $data['records'] = $this->db->get('portfolio', $config['per_page'], $this->uri->segment(2));
        
        $this->load->view('portfolio_view', $data);
    }
}

View: portfolio_view.php
Code:
<?php
echo $this->pagination->create_links();

Pretty straight forward, right?


Messages In This Thread
Pagination is returning blank page - by El Forum - 11-05-2009, 03:31 PM
Pagination is returning blank page - by El Forum - 11-05-2009, 03:59 PM
Pagination is returning blank page - by El Forum - 11-05-2009, 08:47 PM
Pagination is returning blank page - by El Forum - 11-05-2009, 11:06 PM
Pagination is returning blank page - by El Forum - 11-06-2009, 01:05 AM
Pagination is returning blank page - by El Forum - 11-06-2009, 11:15 AM
Pagination is returning blank page - by El Forum - 11-06-2009, 11:17 AM
Pagination is returning blank page - by El Forum - 11-06-2009, 11:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB