Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     get_instance()->config->load('site_config', TRUE);
     // $api = get_instance()->config->item('google_app', 'site_config');
     // $this->api_key = $api['simple_api_key'];
     $this->api_key = Api_key::value('google', 'developer_key');
     if (empty($this->api_key)) {
         throw new Exception('Setup google api key.');
     }
 }