Digital site
Digital site

Reputation: 4437

how to integrate Tank auth on a website?

I've installed codeigniter on my server and made Tank auth work fine, too. now I want to know how to access Tank auth from my php pages. do I have to use include function so the login is placed inside my original php page or there is a better way how to do that??

I also want to show the login and log out buttons on my php pages.

any idea or clue to achieve that?

Thanks

Update #1 I believe that I can't create Tank auth session out of codeigniter, so how can I integrate my php pages in this CMS? please correct me if I was wrong.

Upvotes: 0

Views: 818

Answers (1)

Digital site
Digital site

Reputation: 4437

Ok, I'm also this time going to answer my own question since I found the solution. maybe it is not the best answer, but I made it work in my side. To make the Tank Auth system work on other pages, the pages have to be placed in View folder in codeigniter framework so that an admin can gives permissions to do whatsoever in order to access the pages. Also, from the controller folder pages have to be identified in the same Tank Auth controller page so that the system works together wih any new page. I tried to place the pages out of the framework, but it didn't work Codeiginiter can't define out source variables. I get a lot of error as a result of that. I hope anyone find this useful. Thanks.

Upvotes: 0

Related Questions