Sample CodeIgniter Application with Source Code

I was working on this non-production CodeIgniter application and I’ve think I’m pretty much done with it. I used it as a learning experience and now would like to pass it on to you, whether for reference, curiosity, or pure entertainment. Admittedly, I could have done better with the conventions and programming style but I believe I did a good job implementing models and using Prototype with script.aculo.us for Ajax functionality.

Check out the application at http://codeigniter.paulshen.name/index.php
Click the Login link and use the credentials: demo/password
Try messing around with the interface: adding, editing and deleting entries

Following is the source code and some notes on the application

Source Code: http://www.paulshen.name/public/codeigniter.zip

The application was built on CodeIgniter 1.5.3
To install, upload these files maintaining the directory structure and import the SQL file. You’ll have to edit the config.php and database.php file to match your own settings. Note that the application uses long URLs (with index.php)

Notes

First of all, as a disclaimer, the application is not at all production and I’m releasing it purely for programming reference and education. There are parts missing and things might be broken (you should email and tell me about them). Functionality was not optimized and there was no time spent on design.

Features:
Ajax calls
User sessions
Visual effects (drag and drop)
Model implementation
Form entry

Don’t mess around too much with the public stuff. Login and that’s where I did the more implementation. I know editing for public goals does not work (it will not save as it isn’t supposed to)

Anything related to repository is disjoint from the rest of the application. This includes any file or table with the words repository and category. There is no interface or connection to this part of the application. You can manually add entries to the database. This might be worth looking at if you want to see a possible way to implement a category hierarchy. Access it at: http://codeigniter.paulshen.name/index.php/repository

Passwords are not encrypted.

Try clicking everything and entering data wherever you can. You might find something cool :)

Feel free to do whatever you want with the code and ask any questions. Please keep my name somewhere if you ever use it. Thanks!


zen perfect does not accept donations but would appreciate it if you Digg!


About this entry