Moving the application into codeigniter framework