如何在网站上集成Tank auth?
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.
我已在我的服务器上安装了codeigniter,并使Tank auth工作正常。 现在我想知道如何从我的php页面访问Tank auth。 我是否必须使用 我也想要 在我的php页面上显示登录和注销按钮。 p>
实现这一点的任何想法或线索? p>
谢谢 p>
更新#1 strong>
我相信我无法使用codeigniter创建Tank auth会话,那么如何在这个CMS中集成我的php页面? 如果我错了,请纠正我。 p>
div> include code>函数,以便将登录信息放在我原来的php页面内,或者有更好的方法可以做到这一点? p>
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.