Codeigniter Pagination Part 1
Posted on : 06-06-2009 | In : Codeigniter, Screencasts
7
One of the biggest things I see being asked around the codeigniter forums & IRC channel is pagination. So I have decided to create a set of tutorials from basic setup to move advanced techniques on how to use this library.
In this screencast I will discuss how to get basic codeigniter pagination working with some simple data.
Screencast Length: 16:30
You can download sample files here .
Design supplid by Free CSS Templates


















Thank you. This helped me understand pagination. The Code Igniter documentation didn’t have this that I could find.
Thanks! I’m new the codeigniter and your casts help immensely
Quick question. How do you get that Posts link to work and direct to the Posts page?
I’ve created the controller, model, and view like you did. Then I went into inc/header.php to add the link to Posts. At first I just entered the link as – a href…. /posts.php but that didn’t work.
Then I read some reading and discovered the anchor function of the url helper which I’ve already autoloaded. So I tried
echo anchor(’posts’, ‘Posts’) but that isn’t working either.
I also tried
echo anchor(’posts/index’, ‘Posts’)
Help?
thanks
One more thing, not sure if it makes a difference but I’m using CI version 1.7.2
thanks for the excellent screencasts!!
This is the second of your series that I have studied and given the date of the screencast it looks like I am about a month behind. I like what I am learning.
My problem right now is seeing how you linked from the welcome page to your post controller.
I was able to modify the welcome page as you have done, with the assets directory and the header and footer includes. I don’t see how you linked the new POST menu item from the welcome page to get to the post controller.
Looking to get to the rest of the tutorials this week.
Nice cast helped a lot to understand gr8
Sorry for the late response. Not quite sure what your issue is? If you still got a problem just send me an email with some example code and ill point you in the right direction.