Skip to content
asyafrudin edited this page Dec 17, 2012 · 2 revisions

Welcome to the catalogue wiki!

DESCRIPTION

This is a sample project containing a running copy of CodeIgniter integrated with DataTables and jeditable to implement a simple product catalogue. This project is nowhere near an actual catalogue. It only shows how to build a simple data management application with DataTables and jeditable as the front-end and CodeIgniter as the back-end of the application. The following basic functionalities are available:

  • List of existing products.
  • Add new product.
  • Delete existing product.
  • Edit existing product.

Listing of products (Product List) are implemented using DataTables. Delete functionality is implemented with custom delete buttons for each row of data in the Product List. Edit functionality is implemented with in-place editor supported by jeditable. Add functionality is implemented with standard HTML form.

Each Product has their own Category. With a many-to-one relationship between Product and Category, this project also shows how to list data from multiple table in DataTables. It also shows how to implement in-place editing of each Product's Category using built-in drop down list feature in jeditable.

TOOLS OF THE TRADE

HOW TO SETUP

  1. Import required database from sql/catalogue.sql.
  2. Add a copy of CodeIgniter's database.php config file to application/config/ tailored to suit your local MySQL database configuration.
  3. Off you go!

FILES WORTH LOOKING

Here are the list of files you should pay attention if you want to make further modification:

  • application/controllers/*.php
  • application/models/*.php
  • application/views/*.php
  • application/libraries/*.php
  • css/*
  • js/*

NOTE: sql/catalogue.sql are important to import the neccessary database objects for this project.

Clone this wiki locally