Gets uri segment variable working

To get the uri_segment working you need to define it in the config array. then this will works:
$this->pgn_model->paginate('model/index'), $page, 4);
where 4 is the uri_segment