Pagination - Blank Page |
[eluser]Unknown[/eluser]
Hello there. First off, I'm someone who's really new to CodeIgniter as it's been only around one week. So, naturally, I'm learning still but I love CodeIgniter already, seeing how much I can do in a really short time. Anyway. Currently, I've been working on a CI-based project. I had no problem with anything until I got to create a pagination for the data I retrieve from a database. I tried everything I could with my skills and I searched through the net, forums and blogs but I couldn't really figure out what I was doing wrong. So, here the question goes... Here is my URL structure: http://localhost/my_site/my_folder/my_class/my_function (I removed the index.php page using an .htaccess file) CI is located in the folder "my_folder". And "my_function" has three variables for CRUD actions. (To retrieve the id, the action etc.) The problem is when I go to the page: http://localhost/my_site/my_folder/my_cl...function/5, it returns totally a blank page. And here are my MVC codes. Model: Code: function get_all_articles($howmany, $offset) Controller: Code: public function my_function($var1 = '', $var2 = '', $var3 = '') View: Code: <table cellspacing="0" cellpadding="5"> Thanks in advance for your help. |
Welcome Guest, Not a member yet? Register Sign In |