Convert from Slim fro Codeigniter