From 08e6b0cca401fdcdafddf652c9d3727428e62772 Mon Sep 17 00:00:00 2001
From: Derek Allard
$this->load->library('calendar');
-
-$prefs = array (
+$prefs = array (
'show_next_prev' => TRUE,
'next_prev_url' => 'http://www.your-site.com/index.php/calendar/show/'
);
-echo $this->calendar->generate($this->uri->segment(3), $this->uri->segment(4), $prefs);
+$this->load->library('calendar', $prefs);
+
+echo $this->calendar->generate($this->uri->segment(3), $this->uri->segment(4));
You'll notice a few things about the above example:
-- cgit v1.2.3-24-g4f1b