Best approach to create Tank_Auth in CI

392 Views Asked by At

I just installed Tank_Auth in Codeigniter and would like to develop a CMS and to know what is the best approach to create an admin account and client account. Do I have to separate one CI directory and controller for a public website and another CI directory controller for the Admin and Client auth?

Ex: My client has a website so everyone (public) can see the contents. It works fine. I want the admin, client and some of their associated to access Create, Update, Delete contents. How would I do that?

2

There are 2 best solutions below

14
On BEST ANSWER

I followed the link you send and made a change but after the change, it loads into a blank page instead of the default 'tank auth' user login form.

How do I make a link to make it works?

Noticed this line

$this->load->library('tank_auth_groups', '', 'tank_auth');
0
On

Hi using Tank Auth Groups you can achieve this (I've updated the README with install instructions). This blog post outlines how this code was created and how to create an admin base controller.