PHP
  Home arrow PHP arrow Building a Blogger with the Code Igniter PHP Framework
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

Building a Blogger with the Code Igniter PHP Framework
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 7
    2008-12-10


    Table of Contents:
  • Building a Blogger with the Code Igniter PHP Framework
  • Start building the blogger with two MySQL database tables
  • Building a blog controller class to display blog entries
  • Defining a simple view file

  • 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


    Building a Blogger with the Code Igniter PHP Framework
    ( Page 1 of 4 )

    People love to communicate, which may be why one of the most popular web applications you can develop is a blogger. In this six-part series, you'll learn how to develop a blogging application using PHP and the Code Igniter framework. In this first article, we'll create the bare bones structure, with plenty of code samples to help you understand the process.

    Introduction

    Although instant messaging applications rule the universe of real time, Internet-based communications, a blogging application provides users with a useful and simple way to share personal ideas, thoughts, interests, and so forth with other people. Besides, building a blog application is by far much easier than creating a messenger program, particularly when using a friendly programming language like PHP.

    I don't mean to imply, however, that it's possible to create a blogger in a few minutes in all the cases. Whether you're using a procedural programming methodology or an object-oriented approach, building an application like this requires time and an intermediate background in working with database-driven programs.

    Even so, it's perfectly feasible to take advantage of a third-party PHP framework to accelerate considerably the development of any web application, and a blogger falls under this category. Of course, there are several software packages available on the web that permit you to build PHP programs very rapidly, but in this particular case I'm going to demonstrate how to create a blog application with Code Igniter (for more information visit its official web site at http://code igniter.com).


    In case you haven't heard about it, Code Igniter is a powerful, comprehensive framework written in PHP 4 that provides developers with a robust set of classes and helpers that can be used for building different web applications by means of the Model-View-Controller pattern, which separates application logic from visual presentation.

    Thus, in this series of articles I'm going to explain how to build a basic blogger with Code Igniter. I will explain it in a step-by-step fashion to allow you to get an excellent grounding in its main features, as well as learn how to implement the MVC approach in a real-world situation.

    Also, it's fair to mention that the implementation of the core logic of this blog program will rely partially on the video tutorial available on Code Igniter's web site (so, many thanks to CI's development team for offering such an educational introduction to using the framework). I will hasten to add that the rest of the application's modules, including its visual presentation, record set paginating and other features will be largely improved.

    That being said, it's time to get rid of the preliminaries and start developing this blog program using Code Igniter. Let's jump in!



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

       

    PHP ARTICLES

    - Using Directory Iterators to Build Loader Ap...
    - Using the spl_autoload() Functions to Build ...
    - Working Out of the Object Context to Build L...
    - Using the _autoload() Magic Function to Buil...
    - The Destruct Magic Function in PHP 5
    - The Autoload Magic Function in PHP 5
    - Developing a Recursive Loading Class for Loa...
    - The Sleep and Wakeup Magic Functions in PHP 5
    - Using the Clone Magic Function in PHP 5
    - Including Files Recursively with Loader Appl...
    - The Call Magic Function in PHP 5
    - Designing a Captcha System with PHP and MySQL
    - Using Static Methods to Build Loader Apps in...
    - The Isset and Unset Magic Functions in PHP 5
    - Advanced PHP Form Input Validation to Check ...





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