CodeIgniter - Form: Creating List Data Use Table LibraryTag: CodeIgniter, framework, MVC, database, table, table library Category: PHP Frameworkpost: 25 Feb 2008 read: 3,106 CodeIgniter Form Step By Step Tutorial - Part 13: At this post, we will build list of data. We don't build as manual, but, use CodeIgniter table library. It is so simple and easy. First, update our model (books_model.php within models). Add getall() method like below (line 22-29):
Then, update main() at controller: books.php. Add line 12-13 like below
Point your browser to http://localhost/CodeIgniter/index.php/books/main
|
| | Give Your Opinion | Recommend |
|
3 Responses to CodeIgniter - Form: Creating List Data Use Table Library:
I didn't know how it was exactly implemented in the tutorial because the main.php modification is missing in this portion of the tutorial but this is how I updated my main.php I just added in place of the "test list". Please PM me if we have same implementation. thanks
By php-zbatev on May 10, 2008
I think you forgot to put a view code in book_main.php that would view the result table from getall(). I just figured this out because the code you gave does not display the results from getall().
By Jong on May 22, 2008
I think you will have to add
in books_main.php as this is the view where getall() will be displayed.
in books_main.php as this is the view where getall() will be displayed.
By Dinesh Sharma on Aug 21, 2008


