douqi3195 2012-02-29 08:54
浏览 38
已采纳

如何在网站上集成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.

  • 写回答

1条回答 默认 最新

  • doujing2017 2012-03-03 04:51
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 CST仿真别人的模型结果仿真结果S参数完全不对
  • ¥15 误删注册表文件致win10无法开启
  • ¥15 请问在阿里云服务器中怎么利用数据库制作网站
  • ¥60 ESP32怎么烧录自启动程序
  • ¥50 html2canvas超出滚动条不显示
  • ¥15 java业务性能问题求解(sql,业务设计相关)
  • ¥15 52810 尾椎c三个a 写蓝牙地址
  • ¥15 elmos524.33 eeprom的读写问题
  • ¥15 用ADS设计一款的射频功率放大器
  • ¥15 怎么求交点连线的理论解?