I've been using hooks for my database migrations in my CI app using the post_controller_constructor
hook.
In my recent revisions, I've changed my main Model variables from being set within the class constructor to being loaded from a db table. When I attempt to execute my new migration with the DB Forge
data in it, my model doesn't load because it gets hung up on the fact that the table doesn't exist yet.
So I obviously can't make any database calls using pre_controller
because I have no access to the main CI object. post_controller_constructor
seems to execute after my Model constructor is loaded. What can I do to grab from the database before my Model is loaded?