From 08e6b0cca401fdcdafddf652c9d3727428e62772 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Thu, 23 Aug 2007 01:04:53 +0000 Subject: Fixed an example in the Calendar library for Showing Next/Previous Month Links. --- user_guide/libraries/calendar.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'user_guide/libraries/calendar.html') diff --git a/user_guide/libraries/calendar.html b/user_guide/libraries/calendar.html index 2880887c6..4731d5076 100644 --- a/user_guide/libraries/calendar.html +++ b/user_guide/libraries/calendar.html @@ -171,14 +171,14 @@ regarding preferences below.

code similar to this example:

-$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