PHP
  Home arrow PHP arrow Displaying User Comments in a Code Igniter Blog Application
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Displaying User Comments in a Code Igniter Blog Application
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 3
    2008-12-23


    Table of Contents:
  • Displaying User Comments in a Code Igniter Blog Application
  • Review: displaying paginated blog entries
  • Displaying user-supplied comments
  • Creating a view file to display user-submitted comments

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Displaying User Comments in a Code Igniter Blog Application
    ( Page 1 of 4 )

    Welcome to the third part of the six-part series titled “Building a Blogger with the Code Igniter PHP Framework.” In successive tutorials, this series shows you how to use this software package to develop a blog application by using the Model-View-Controller design pattern. In this article, you will learn how to make the application display user comments.

    From a programmer’s point of view, building a blog application with PHP can be an extremely educational experience. This process generally requires working with MySQL, as well as creating scripts that must handle several result sets, update and delete database records, and so forth.

    Developing such a web application is something that most programmers would love to do, as long as they don’t have to spend a lot of time writing new code. Fortunately, there are several PHP frameworks available on the web that allow users to develop PHP programs with minor hassles. Code Igniter (http://codeigniter.com) is one of the friendliest to use and learn.

    So, if you’re interested in learning how to take advantage of the functionality provided by Code Igniter to build a blogger, then this series of articles might be what you’re looking for.

    If you had the chance to read the previous article, then you're becoming familiar with building a blogger using Code Igniter. In that tutorial I explained how to combine the functionality of a couple of files to display blog entries previously stored in a MySQL table.

    In this specific case, the first of these files was defined as a basic controller, and was provided with the ability to paginate the aforementioned blog entries via the corresponding pagination class included with Code Igniter.

    However, in its current incarnation, the blog application is pretty limited. It doesn’t let users post comments on each blog entry. Thus, in the next few lines I’ll be improving the signature of the controller class to address this important issue.

    Are you ready to continue learning how to build a blogger with Code Igniter? Then let’s get going!



     
     
    >>> More PHP Articles          >>> More By Alejandro Gervasio
     

       

    PHP ARTICLES

    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...
    - Method Chaining in PHP 5
    - The Role of Interfaces in Applying the Depen...
    - Dependency Injection: Using a Setter Method ...
    - Using a Model Class with the Dependency Inje...
    - Injecting Objects Using Setter Methods with ...
    - Injecting Objects by Constructor with the De...
    - The Dependency Injection Design Pattern in P...
    - Performing Inferential Statistical Analysis ...
    - Performing Descriptive Statistical Analysis ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    Stay green...Green IT