From 360258324249d0224756df0ad4f7b7a7fa9fde94 Mon Sep 17 00:00:00 2001 From: koningskristof Date: Sat, 25 Jan 2014 23:22:32 +0100 Subject: [PATCH] Added session and url-helper library Else it was not working on clean codeigniter install. --- application/controllers/twitter.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/controllers/twitter.php b/application/controllers/twitter.php index 522dad3..68c8779 100644 --- a/application/controllers/twitter.php +++ b/application/controllers/twitter.php @@ -24,6 +24,10 @@ function __construct() $this->load->library('twitteroauth'); // Loading twitter configuration. $this->config->load('twitter'); + // Loading session library to access the session + $this->load->library('session'); + // Loading url helper library to use base_url and redirect function + $this->load->helper('url'); if($this->session->userdata('access_token') && $this->session->userdata('access_token_secret')) { @@ -175,4 +179,4 @@ private function reset_session() } /* End of file twitter.php */ -/* Location: ./application/controllers/twitter.php */ \ No newline at end of file +/* Location: ./application/controllers/twitter.php */