Rabu, 06 Oktober 2010

Create your Common Controller by Extending Codeigniter Controller

Sometimes we need to create a base controller of our own application. Here are steps to build and use your own controller based on Codeigniter controller

  1. Create a controller that extend code igniter controller
  2. Put your controller in same directory where Codeigniter main controller exist
  3. Edit Codeigniter.php, find code that load controller class
  4. Add same code to load your controller
  5. Use it by extend your own controller in same manner like it is CI base controller

0 komentar:

Posting Komentar

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More