He intentado pasar un array a un helper, pero despues no consigo acceder al array
controller.php
Código PHP:
$this->load->library('pagination');
$this->load->helper('pagination');
echo $config['first_link']; #Message: Undefined variable: config
pagination.php
Código PHP:
echo 'ESTO SI SE MUESTRA';
return $config['use_page_numbers'] = true; # Salta por unidad el vez de por $limite
return $config['base_url'] = base_url('blog/home');
return $config['first_url'] = base_url('blog/home/1');
return $config['total_rows'] = 99;#$this->db->get('post')->num_rows();
return $config['per_page'] = $limite;
return $config['num_links'] = 5; #Páginas adyacentes visibles
return $config['first_link'] = 'Primero';
return $config['last_link'] = 'Ultimo';
return $config['next_link'] = 'Siguiente';
return $config['prev_link'] = 'Anterior';
return $config['full_tag_open'] = '<ul class="pager">';
return $config['full_tag_close'] = '</ul>';
return $config['cur_tag_open'] = '<li><span>';
return $config['cur_tag_close'] = '</span></li>';
return $config['first_tag_open'] = '<li>';
return $config['first_tag_close'] = '</li>';
return $config['last_tag_open'] = '<li>';
return $config['last_tag_close'] = '</li>';
return $config['num_tag_open'] = '<li>';
return $config['num_tag_close'] = '</li>';
return $config['next_tag_open'] = '<li class="next">';
return $config['next_tag_close'] = '</li>';
return $config['prev_tag_open'] = '<li class="previous">';
return $config['prev_tag_close'] = '</li>';