CodeIgniter Forums
pagination config file ignored after upgrade - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: pagination config file ignored after upgrade (/showthread.php?tid=66120)



pagination config file ignored after upgrade - sparky672 - 09-07-2016

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.


RE: pagination config file ignored after upgrade - Wouter60 - 09-07-2016

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


RE: pagination config file ignored after upgrade - sparky672 - 09-07-2016

(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.