Welcome Guest, Not a member yet? Register   Sign In
A tutorial about Ion Auth and authentication in CI3
#7

(This post was last modified: 10-29-2015, 08:27 PM by orionstar.)

(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



Theme © iAndrew 2016 - Forum software by © MyBB