• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Launch automatically function


I have developed a library to verify if the user is autentified. I'm looking for a way to launch automatically the function which check that.

I think i should integrate the test in the master Controller but maybe exists a best way to dothat ?



ps : sorry for my english Wink

Hi louis, welcome to CI
You can either extend the base controller, or you a hook

I personally prefer to use the MY_Controller approach Smile

You could just auto load the library, and have it perform some tasks upon instantiation - like the session library.

Sorry for the delay.

I think the MY_Controller approach is the best solution because the library must permit to make the authentification when you want and not always on instantiation.

Thanks for yours answers


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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