SampleCode using Codeigniter