This is source code from git for codeigniter