Miscellaneous Code
  Home arrow Miscellaneous Code arrow Completing a Model for the CodeIgniter...
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 
App Generation ROI 
IBM® developerWorks 
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

Completing a Model for the CodeIgniter PHP Framework
By: Alejandros Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-09-23

    Table of Contents:
  • Completing a Model for the CodeIgniter PHP Framework
  • Performing generic SQL queries
  • Completing the AbstractModel class
  • The generic model class's full source code

  • 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


    Completing a Model for the CodeIgniter PHP Framework


    (Page 1 of 4 )

    One of the most remarkable features offered by the CodeIgniter PHP framework is its great flexibility, which lets web developers build custom libraries that contribute to extending the framework’s core functionality. In this group of articles you’ll learn how to create a generic model class for CI. The class will permit you to perform CRUD operations against a number of database tables in a truly painless fashion, without having to spend a long time coding numerous and complex models.

    Of course, if you've been a patient reader and already went through all of the previous tutorials of this series, then by this time you’ll hopefully have a very clear idea of how to build a generic model class for CodeIgniter. In those articles I not only proceeded to define such a class, but progressively added several features to it, including capabilities for retrieving, saving and deleting database rows, as well as for validating data passed to the model.

    Despite the fact that all of the features shown before are indeed very useful, the model class in its current state is still incomplete. It lacks methods that allow it to perform generic SQL statements, clean up its set of properties and so forth. Therefore, in this penultimate chapter of the series, I'm going to incorporate a few additional methods into the model class that will be tasked with executing these all of these specific operations.

    It's time to get this generic model classy completed. Let’s do it right now!

    More Miscellaneous Code Articles
    More By Alejandros Gervasio


       · In this part of the series the generic CI model gets finally completed, thanks to...
     

    MISCELLANEOUS CODE ARTICLES

    - 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 ...
    - Model Data and Validation Rules for a Generi...
    - Building a Generic Model for the CodeIgniter...
    - upload image to database sql
    - Random Password Generator
    - BCroot, get the root of a number with BC fun...
    - Find pi in a high precision
    - [PHP5] FORMCHECKER : data validation
    - SPL and ITERATOR : examples
    - Xml with Rss Feeds





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