Welcome Guest, Not a member yet? Register   Sign In
two pagination instance at the same time
#1

[eluser]j0hn[/eluser]
how can i use pagination for model1 and model2 at the same time? is it possible?
Code:
class MyController extends Controller
{
    function MyController()
    {
        parent::Controller();
        $this->load->library('pagination');
        $this->load->model('model1');
        $this->load->model('model2');
    }

    function index()
    {
        $config['base_url'] = ?;
        $config['total_rows'] = ?;
        $config['per_page'] = 20;
        $config['full_tag_open'] = '<p>';
        $config['full_tag_close'] = '</p>'    
    }
}




Theme © iAndrew 2016 - Forum software by © MyBB