codeigniterMake API in Codeigniter


Introduction

CodeIgniter provide auto initialized Output class which is very useful for creating API and differents type of documents output like .pdf, .csv, .image, etc...

NOTE :- Codeigniter default document type is HTML change it to application/json, API must be required type of json