What are the main differences between tank auth and Ion auth conisdering a Beginner ??
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
January 02, 2012 9:37am
Subscribe [3]#1 / Jan 02, 2012 9:37am
What are the main differences between tank auth and Ion auth conisdering a Beginner ??
#2 / Jan 19, 2012 6:11pm
This link at StackOverflow http://stackoverflow.com/questions/346980/what-codeigniter-authentication-library-is-best is a very thorough explanation of why Tank_Auth may be the “best” authentication library for a lot of complex reasons. As a beginner, like yourself, I found Ion_Auth much easier to implement mostly because of its better documentation.
I think it’s also indicative that at the time of writing this reply the thread for Ion_Auth on this forum has 116 pages, whereas Tank_Auth has 47. It’s not exactly evidence, but it suggests that there’s more interest in discussing Ion_Auth.
If you choose to go with Ion_Auth, make sure you read Ben Edmunds introduction at http://ellislab.com/forums/viewthread/145263/ He makes it clear that the controllers and views that he provides are just samples. Don’t feel bound by them. For instance, I’m creating an admin area where only admin can create users. I don’t want casual visitors registering. So, if admin successfully logs in, I want the auth controller to redirect the administrator to /admin/home. I changed:
redirect($this->config->item('base_url'), 'refresh');to:
redirect('admin', 'refresh');Obviously, that redirect depends on having a suitable route expression set in route.php