CodeIgniter Forums
Extend the migrations library - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Extend the migrations library (/thread-47672.html)

Extend the migrations library - El Forum - 12-17-2011

I was looking to implement a DB version checker and tried to extend the migrations library as I needed access to the current version and the latest version from the config file both of which I can see are available in the Migrattion lib.

I noticed that the constructor is only run on the main library load and wondered if there would be any reason for this? (I'm not being sarcastic here, generally interested)

Also, I should point out that I am still learning PHP and am not really sure if this would be the best way to do this. Anyone else have something like this setup?

Cheers in advance guys,