Пример #1
0
 /**
  * 获取登录页URL
  * 
  * @return string
  */
 public static function showLoginUrl()
 {
     $url = 'https://github.com/login/oauth/authorize?client_id=%s&scope=public_repo';
     $client_id = \Model\Config::show('github_client_id');
     $result = sprintf($url, $client_id);
     return $result;
 }