• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A tutorial about Ion Auth and authentication in CI3

#7
(10-29-2015, 04:14 PM)solidcodes Wrote: @avenirer
that's sad it's really easy to organize MVC in HMVC.

It's very easy to use Ion Auth with HMVC. You create a module e.g. "users", you put Ion Auth into that folder. When you want to load Ion auth you load the library from the module: $this->load->library('users/ion_auth'); Then you replace the redirects in Ion Auth controller with a starting 'users/' (for example: redirect('users/login')), then rewrite every load in the Ion_auth.php libary file and in the model... also you should replace the form_open occurancies to start with 'users/'. Then you're done!
Reply


Messages In This Thread
RE: A tutorial about Ion Auth and authentication in CI3 - by orionstar - 10-29-2015, 08:27 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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