大家有在Codeigniter里面用过这个Opauth的插件吗

2013-04-11 22:20:48 +08:00
 meteor2013
https://github.com/mcatm/Opauth-Plugin-for-Codeigniter

看了半天下面这个安装说明,感觉很不清晰.


1. 'opauth' folder to 'third_party' folder in CI.
2. write path to plugins on controller
$this->load->add_package_path(APPPATH.'third_party/opauth/');

1.you can write config on third_party config files

$this->load->config('opauth'); $config = $this->config->item('opauth_{******}');

2. initialize library

$this->load->library('opauth', $config);



大家帮帮忙, 说一下具体怎么用阿?
2820 次点击
所在节点    PHP
4 条回复
baby
2013-04-11 22:30:25 +08:00
看api或者代码呀
load之后就是this opauth调用他的方法了
meteor2013
2013-04-11 22:47:53 +08:00
@baby 能给个例子不? 我看的有点糊涂了.
meteor2013
2013-04-11 23:14:22 +08:00
不太清楚 write config on third_party config files
这个third_party的config在那里设置?
meteor2013
2013-04-12 01:40:06 +08:00
write config on third_party config files 就是这句话不清楚,

所以就不知道下面这个到底应该放在那个文件里
$this->load->config('opauth');
$config =$this->config->item('opauth_{******}');

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/65624

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX