CodeIgniter Pagination Problem
The pagination class should check the second parameter, not the third(default).
Add this to the config array to change this:
$config['uri_segment'] = '2';
This won't change anything but be helpful in creating the url needed.change this :
$config['base_url'] = base_url().'controlpanel/';
to this:
$config['base_url'] = site_url('controlpanel');
Also dont forget to check out for..$inboxMessageCount this value set from the controller
$config['total_rows'] = $inboxMessageCount;
If this value set, is less than the limit value, then pagination will not be displayed.