Miscellaneous Code
  Home arrow Miscellaneous Code arrow A Web App Based on a Model for the Cod...
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
Case Studies 
iPad Development 
Download TestComplete 
Forums Sitemap 
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? 
MISCELLANEOUS CODE

A Web App Based on a Model for the CodeIgniter PHP Framework
By: Alejandros Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2009-09-30

    Table of Contents:
  • A Web App Based on a Model for the CodeIgniter PHP Framework
  • Review: the generic model class’s complete source code
  • Inheriting the functionality of the abstract model class
  • The property model class in action

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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


    A Web App Based on a Model for the CodeIgniter PHP Framework


    (Page 1 of 4 )

    Among the numerous features provided by the CodeIgniter PHP framework, its flexibility is probably one of the most appreciated by both beginners and experienced users. This flexibility gives them the liberty to develop their own custom model classes with minor restrictions. Precisely this characteristic is highlighted in this series of articles, which form a comprehensive guide that walks you through building a highly-generic model class. You'll be able to use this class for creating database-driven web applications without having to code multiple and redundant models. This article concludes the eight-part series.

    Naturally, if you’ve already read all of the tutorials that precede this one, then it’s possible that you're now pretty familiar with creating a model class like the one mentioned above. During the previous parts of this series, I explained how to progressively develop an abstract model class, which could not only perform CRUD operations against a selected database table, but could also validate incoming data required for inserting and updating database records.

    Speaking more specifically, in the last tutorial I added to the model class a couple of methods suitable for performing generic SQL queries and building error strings as well. These methods completed the class's development. 

    Of course, this means that now the class is ready to be used within the context of any database-driven application created with CodeIgniter. So, to demonstrate this concept, in this last episode of the series I’m going to create a simple MySQL-based real estate program that will utilize this generic model class to fetch, save and delete some fictional properties.

    Want to see how this will be accomplished in a few simple steps? Then start reading now!

    More Miscellaneous Code Articles
    More By Alejandros Gervasio


       · This last episode of the series shows how to create a simple MySQL-based real estate...
       · Hi Alejandro Gervasio,You do know that CodeIniter is now dropping support for...
     

    MISCELLANEOUS CODE ARTICLES

    - Creating a Web Page Controller with the HMVC...
    - Coding Controllers and Views for the HMVC De...
    - A Sample Web Application with the HMVC Desig...
    - Adding a Class to Parse Views to an HMVC Des...
    - Building a Model Class for the HMVC Design P...
    - Filtering Input Data and Generating HTML For...
    - The HMVC Design Pattern: Working with MySQL ...
    - Dispatching Requests to MVC Triads with the ...
    - Implementing the Hierarchical Model-View-Con...
    - A Web App Based on a Model for the CodeIgnit...
    - Completing a Model for the CodeIgniter PHP F...
    - Validating Input Data with the CodeIgniter P...
    - Deleting Database Records with the CodeIgnit...
    - Inserting Database Records with a CodeIgnite...
    - Fetching Database Rows with a Model for the ...





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 11 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek