News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Fawad Hassan's Blog:
Load More Using KnockoutJS, PHP/CodeIgniter (Part 1)
May 04, 2012 @ 11:28:04

In this new post to his blog Fawad Hassan shows you how to combine the Knockout.js Javascript library that helps you implement a more powerful, MVVM application on top of the CodeIgniter PHP framework.

Everyone has used social networking sites and almost all of them implement Load More functionality to load additional posts/messages. Load More is actually alternate way of pagination. There are two kinds of Load More functionality. First is to load additional content when the user hits the scrollbar at the bottom of the page. Another kind is to load new content only when user clicks on "Load More" button. Personally I prefer the second one because it reduces the load on server and load content only when user wants it and in this article we will take a look at implementing this second kind.

Included in the tutorial are all the steps you need including:

  • Creating the database and needed tables
  • Configuring CodeIgniter
  • Creating a model, controller and view (and ViewModel) in Knockout

This is the first part of the series, so keep an eye out for part two that will include integration with a Twitter feed. If you want to jump to the "good stuff", you can check out this demo or download the source.

0 comments voice your opinion now!
knockoutjs codeigniter tutorial mvvm framework


blog comments powered by Disqus

Similar Posts

PradoSoft.com: PRADO/Wordpress/BBPress integration v1.0...

PHPBuilder.com: Harness the Scripting Power of PHP and cURL to Update Facebook

Daniel Krook's Blog: Technologies of the day: CakePHP & CodeIgniter

MaltBlue.com: Zend Form Mastery with Zend_Config - Part 3, Standard Form & Element Options

PHPit.net: PHP5 Class Basics, Part 1


Community Events





Don't see your event here?
Let us know!


threedevsandamaybe developer library configure laravel release language interview series project list api introduction application wordpress bugfix community framework podcast code

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework