Transferring LearningInSync code to CodeIgniter Framework