V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
meteor2013
V2EX  ›  PHP

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

  •  
  •   meteor2013 · Apr 11, 2013 · 3425 views
    This topic created in 4774 days ago, the information mentioned may be changed or developed.
    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);



    大家帮帮忙, 说一下具体怎么用阿?
    4 replies    1970-01-01 08:00:00 +08:00
    baby
        1
    baby  
       Apr 11, 2013 via iPad
    看api或者代码呀
    load之后就是this opauth调用他的方法了
    meteor2013
        2
    meteor2013  
    OP
       Apr 11, 2013
    @baby 能给个例子不? 我看的有点糊涂了.
    meteor2013
        3
    meteor2013  
    OP
       Apr 11, 2013
    不太清楚 write config on third_party config files
    这个third_party的config在那里设置?
    meteor2013
        4
    meteor2013  
    OP
       Apr 12, 2013
    write config on third_party config files 就是这句话不清楚,

    所以就不知道下面这个到底应该放在那个文件里
    $this->load->config('opauth');
    $config =$this->config->item('opauth_{******}');
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5595 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 07:31 · PVG 15:31 · LAX 00:31 · JFK 03:31
    ♥ Do have faith in what you're doing.