Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     // load models
     $this->load->model(array('dashboard_model'));
     // load libraries
     $this->load->library(array('pagination', 'googleplus'));
     $this->load->library('facebook_lib', array('appId' => '1612651935651661', 'secret' => '30170ca7c0ba0e396d6e32bb0c9ea66e', 'permissions' => array('public_profile', 'email')));
     // load helpers
     $this->load->helper(array('url', 'io_format'));
     // facebook logout url
     $this->viewData['fbLogoutUrl'] = $this->facebook_lib->getLogoutUrl(array('next' => site_url('home/logout/facebook'), 'access_token' => $this->facebook_lib->getAccessToken()));
 }
Exemplo n.º 2
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper(array('form', 'url', 'cookie', 'io_format'));
     $this->config->load('property_listing_image');
     $this->load->library(array('session', 'form_validation', 'upload', 'image_lib', 'googleplus', 'pagination'));
     $this->load->library('facebook_lib', array('appId' => '1612651935651661', 'secret' => '30170ca7c0ba0e396d6e32bb0c9ea66e', 'permissions' => array('public_profile', 'email')));
     $this->load->model('host_model');
     $this->load->model('home/home_model');
     $this->load->model('notification/notification_model');
     $this->load->model('transaction_notification/transaction_notification_model');
     $this->load->helper('email_helper');
     $this->viewData['fbLogoutUrl'] = $this->facebook_lib->getLogoutUrl(array('next' => site_url('home/logout/facebook'), 'access_token' => $this->facebook_lib->getAccessToken()));
 }