function __construct() { parent::__construct(); $config = \Config::load('twitter', true); $this->_tokens = array('consumer_key' => $config['tweet_consumer_key'], 'consumer_secret' => $config['tweet_consumer_secret'], 'access_key' => $this->_getAccessKey(), 'access_secret' => $this->_getAccessSecret()); $this->_checkLogin(); }
function __construct() { parent::__construct(); $this->_obj =& get_instance(); $this->_obj->load->config('tweet'); $this->_obj->load->library('session'); $this->_obj->load->library('unit_test'); $this->_obj->load->helper('url'); $this->_tokens = array('consumer_key' => $this->_obj->config->item('tweet_consumer_key'), 'consumer_secret' => $this->_obj->config->item('tweet_consumer_secret'), 'access_key' => $this->_getAccessKey(), 'access_secret' => $this->_getAccessSecret()); $this->_checkLogin(); }
function __construct() { parent::__construct(); $this->_obj =& get_instance(); //$this->_obj->load->config('tweet'); // this is now in config file for easy access //$this->_obj->load->library('session'); // we already loaded this for tank auth! $this->_obj->load->library('unit_test'); //$this->_obj->load->helper('url'); // this is also loaded already! $this->_tokens = array('consumer_key' => $this->_obj->config->item('tweet_consumer_key'), 'consumer_secret' => $this->_obj->config->item('tweet_consumer_secret'), 'access_key' => $this->_getAccessKey(), 'access_secret' => $this->_getAccessSecret()); $this->_checkLogin(); }