Home arrow PHP arrow Building a Sample Application with Method Chaining and CodeIgniter

Building a Sample Application with Method Chaining and CodeIgniter

Definitely, building chainable class methods with PHP 5 is a process that can be mastered with minor effort, even for developers with only an average level of experience in using the object-oriented paradigm. Therefore, if you're a passionate PHP programmer who wishes to learn the key concepts that surround the implementation of method chaining in a painless fashion, then this group of articles is what you need.

  1. Building a Sample Application with Method Chaining and CodeIgniter
  2. Review: the abstract model class so far
  3. Adding functionality to the Users controller class
  4. Finishing the controller class with update and delete methods
By: Alejandro Gervasio
Rating: starstarstarstarstar / 2
December 03, 2009

print this article



Welcome to the final part of a series that covers method chaining in PHP 5. In twelve tutorials, this series attempts to teach you the basics of building chainable class methods with PHP 5 and complements the corresponding theory with copious hands-on examples.

And now that you've come to this point, it's time to summarize the topics that were covered in the last tutorial. In that particular article I finished building a custom model library for the popular CodeIgniter framework, where most (not all) of its functionality relied on the definition and implementation of chainable methods. That speaks for itself about the convenience of using this programming approach.

It's valid to say, though, that this custom library would be pretty useless if I didn't show you how to utilize it in the context of a database-driven application. Therefore, this last installment of the series will be aimed at demonstrating how to build a simple PHP program with CodeIgniter that will perform CRUD operations on a simple MySQL table that will store data on some fictional users.

Now, it's time to stop talking and get our hands dirty building this basic - yet illustrative -- PHP program.

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

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates


Dev Shed Tutorial Topics: