Example #1
0
 /**
  * 
  * {@inheritDoc}
  * @see \yii\base\Object::init()
  */
 public function init()
 {
     parent::init();
     // 1. require the file
     require_once __DIR__ . '/yunpian/YunpianAutoload.php';
     // 2. 首先在 conf/config.php   中配置自己的相关信息
     $GLOBALS['YUNPIAN_CONFIG']['APIKEY'] = $this->apikey;
     $GLOBALS['YUNPIAN_CONFIG']['API_SECRET'] = $this->api_secret;
 }