Miscellaneous Code

  Home arrow Miscellaneous Code arrow A Web App Based on a Model for the Cod...
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

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    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

    blog comments powered by Disqus

    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-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap