[eluser]e.abubakr89[/eluser]
===============
Hi Naveen Reddy
:-)
Thanks, But I Have created my pagination with traditional way by setting config variables of pagination in a controller as:
Code:
function outbox()
{
$this->load->library('table');
$this->load->library('pagination');
$config['base_url'] = 'http://localhost/we_hona/index.php/private_messages/outbox';
$this->db->where('from',$this->input->post('session_username'));
$config['total_rows'] = $this->db->get('pm')->num_rows();
$config['per_page'] = 3;
$config['num_links'] = 5;
$config['full_tag_open'] = '<div id="outbox_pages">';
$config['full_tag_close'] = '</div>';
$this->pagination->initialize($config);
$this->db->where('from',$this->input->post('session_username'));
$data['records'] = $this->db->get('pm', $config['per_page'], $this->uri->segment(3));
$this->load->view('outbox_messages',$data);
then go to my view and use the table.generate($records) to generate the pagination table
Code:
<?php
echo $this->table->generate($records); ?>
<?php echo $this->pagination->create_links(); ?>
The problem here that
I can not find the tools that help me in :
1 - control the records output ( as using substr() with message records )
as I can just set config and get the pagination and it return the full data of DB with no options for more controller
2 - also I can not reformatting the output records in the table (as link the record I need)
I hope that the message received
thanks