moerge from github project Codeigniter-App-Engine