Welcome Guest, Not a member yet? Register   Sign In
configuration of any file
#8

[eluser]Rodrigo Alexandre[/eluser]
I found the problem, the data must be passed as follows in the config file (pagination.php) within:

Code:
$config['full_tag_open']  = '<div id="pag"><ul>';
$config['full_tag_close'] = '</ul></div>';
$config['prev_tag_open']  = '<li id="prev">';
$config['prev_tag_close'] = '</li>';
$config['next_tag_open']  = '<li id="next">';
$config['next_tag_close'] = '</li>';
$config['first_link']     = 'Home';
$config['first_tag_open'] = '<li>';
$config['first_tag_close']= '</p> </ li>';
$config['last_link']      = 'Last page';
$config['last_tag_open']  = '<li>';
$config['last_tag_close'] = '</p> </ li>';
$config['num_tag_open']   = '<li>';
$config['num_tag_close']  = '</li>';
$config['cur_tag_open']   = '<li><strong>';
$config['cur_tag_close']  = '</strong></li>';

and the controller:

Code:
$this->load->library ('pagination');

$config['base_url']   = $url;
$config['total_rows'] = $all_reg;
$config['per_page']   = $amount_pag;

$config['num_links'] = $num_links;
$this->pagination->initialize($config);


Messages In This Thread
configuration of any file - by El Forum - 04-14-2012, 08:06 AM
configuration of any file - by El Forum - 04-14-2012, 08:23 AM
configuration of any file - by El Forum - 04-14-2012, 08:27 AM
configuration of any file - by El Forum - 04-14-2012, 08:29 AM
configuration of any file - by El Forum - 04-14-2012, 08:38 AM
configuration of any file - by El Forum - 04-14-2012, 09:01 AM
configuration of any file - by El Forum - 04-14-2012, 09:25 AM
configuration of any file - by El Forum - 04-14-2012, 01:51 PM
configuration of any file - by El Forum - 04-14-2012, 02:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB