load->helper('url'); //Load session library $this->load->library('session'); } //Displays social login links public function index() { // Load Hybridauth's helper $this->load->helper('hybridauth'); /* // Instantiate Hybridauth's classes $hybrid = new Hybridauth(get_hybridauth_config()); // Get login links $login_links = get_hybridauth_links($hybrid, $this->router); */ $login_links = array( 'Google' => get_google_login_link(), 'Apple' => get_apple_login_link() ); // Pass login links to html template $data['login_links'] = $login_links; // Render html template $this->load->view('site3/external/view_home', $data); } public function about() { $this->home2('home2/about'); } }