Skip to content

Database Admin Controller for Code Igniter and Ext JS 4

I have been using Code Igniter and Ext JS 4 for several months.  In that time, I have created a couple basic templates to display MySQL tables and perform CRUD on those tables.  In addition, I have wanted to create some basic admin screens for the Core Igniter configured databases.  In my configuration, I have multiple databases defined, using Code Igniter’s built-in support for multiple database access.  So, given all of that, I have created a controller that will display all Code Igniter configured databases, list the contained tables, and allow you to display and edit those tables.

Right now the basic template supports simple pagination, as well as Adding, Deleting, and Updating records.  While fairly full-featured, it does not yet handle remote sorting.  In addition, I am sure you will find some minor display issues with data fields that are not your standard integer or varchar.  I will look to address these later.  As an added bonus, the template references Ext JS remotely, so you do not need to install Ext JS 4 for these admin screens to work.  If you are interested in giving Ext JS 4 a try, this is a great way to explore with it.

One feature of this controller is that the panel for the table admin is dynamically generated.  This will allow you to save the created JS file, and modify it to suit your needs.  You can easily create very custom screens from this generated template.

If you would like to see updates, or have any issues, leave me a message here and I will try to address them.

You can download the zip file here.

To install, just add the enclosed files to your controllers and views directory and make sure you have a valid database configured.

4 Comments

  1. vinh wrote:

    Can you send me all code, pls?
    Thank you very much

    Monday, February 20, 2012 at 10:44 am | Permalink
  2. gsmith wrote:

    What code are you missing? Download the file linked to the Post, it should have all you need.

    Monday, February 20, 2012 at 12:36 pm | Permalink
  3. hey, I like your chat box. :-D

    was super funny I kept on chatting it till i found out it was some sort of robot. lol. anyway, I’m just dropping by to say hello! :-)

    Friday, May 4, 2012 at 7:31 pm | Permalink
  4. Max Bechdel wrote:

    This made my day. Thanks so much!

    Friday, November 23, 2012 at 10:00 pm | Permalink

One Trackback/Pingback

  1. CodeIgniter Grocery CRUD Tutorial : Smashing Web on Friday, March 2, 2012 at 12:34 pm

    [...] Database Admin Controller for Code Igniter and Ext JS 4 (z-car.com) [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*