php - Best approach to create Tank_Auth in CI


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?




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.




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');

People are also looking for solutions to the problem: php - Retrieve data from dynamically generated form


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.