• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Initialisation of the Database

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()

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 )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.