Welcome Guest, Not a member yet? Register   Sign In
Initialisation of the Database
#1

Hi! I would like to implement an installation routine.
When my default controller is started, it should invoke a function that create if needed the tables in my database...

The question is where do I put (best practice) the function? In the main controller? In a model? I tried in an Helper but got issues with the db->table_exist()
Reply
#2

Create and put them in a install model
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB