Using Pagination but with NO table ? |
[eluser]chefnelone[/eluser]
Hello I have this code to do pagination using tables. I'd like to know how to do it using DIVs instead of TABLE How can I grab the sent data from the view? controller: site.php Code: function index() VIEW: views/site_view.php Code: <div>
[eluser]arthurhanlon[/eluser]
Hey there, look at the section here: http://ellislab.com/codeigniter/user-gui...ation.html on customizing the pagination links at the bottom. Hope this helps, Arthur
[eluser]clip[/eluser]
You will have to rewrite your view file. Instead of: Code: <?php echo $this->table->generate($records); ?> Code: <?php foreach($records as $record): ?>
[eluser]chefnelone[/eluser]
[quote author="clip" date="1280518899"]You will have to rewrite your view file. Instead of: Code: <?php echo $this->table->generate($records); ?> Code: <?php foreach($records as $record): ?> You're right, but you need to change this line also: Code: $data['records'] = $this->db->get('data', $config['per_page'], $this->uri->segment(3)); for this one: Code: $data['records'] = $this->db->get('data', $config['per_page'], $this->uri->segment(3))->result();
[eluser]chefnelone[/eluser]
Pagination: how can I hide: first_link and last_link ?? With this I can set the text for them: Code: $config['first_link'] = 'Start'; but I need to hide them, I tried with (but nope) Code: $config['first_link'] = FALSE; |
Welcome Guest, Not a member yet? Register Sign In |