Welcome Guest, Not a member yet? Register   Sign In
pagination config file ignored after upgrade
#1

(This post was last modified: 09-08-2016, 08:02 AM by sparky672.)

Everything was working fine in version 3.0.0

However, after upgrading to version 3.1.0, my pagination config file is totally ignored.

I have this in my Controller:

PHP Code:
$config['base_url'] = '/controller/function/' $type '/';
$config['uri_segment'] = 4;
 
$this->load->library('pagination');
$this->pagination->initialize($config); 
$data['pagination'] = $this->pagination->create_links(); 

And I have additional settings stored here:

application/config/pagination.php

The above was working fine in CI 3.0.0.  After I upgraded to 3.1.0, my pagination markup reverted to default because all custom configuration settings contained within my pagination.php file are being ignored.

What's going on?  Thanks.
Reply
#2

Did you set the $config['base_url'] setting in your config.php file?
It shouldn't be empty.
Reply
#3

(09-07-2016, 11:13 AM)Wouter60 Wrote: Did you set the $config['base_url'] setting in your config.php file?
It shouldn't be empty.

That's not empty, and in case there's any confusion, the actual pagination URL's are still working... it's my pagination configuration file that's suddenly broken. I keep configuration options that control the HTML markup stored in my pagination.php file.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB