summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-08-23 03:04:53 +0200
committerDerek Allard <derek.allard@ellislab.com>2007-08-23 03:04:53 +0200
commit08e6b0cca401fdcdafddf652c9d3727428e62772 (patch)
tree978c4a4ed5f57715419942a8d927b015d1274a5e /user_guide/libraries
parent309d63fa5c011c5cf0fbe0c78ab5f294aaae6752 (diff)
Fixed an example in the Calendar library for Showing Next/Previous Month Links.
Diffstat (limited to 'user_guide/libraries')
-rw-r--r--user_guide/libraries/calendar.html8
1 files changed, 4 insertions, 4 deletions
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.</p>
code similar to this example:</p>
-<code>$this->load->library('calendar');<br />
-<br />
-$prefs = array (<br />
+<code>$prefs = array (<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'show_next_prev'&nbsp;&nbsp;=> TRUE,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'next_prev_url'&nbsp;&nbsp; => 'http://www.your-site.com/index.php/calendar/show/'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br />
<br />
-echo $this->calendar->generate(<var>$this->uri->segment(3)</var>, <var>$this->uri->segment(4)</var>, $prefs);</code>
+$this-&gt;load-&gt;library('calendar', $prefs);<br />
+<br />
+echo $this->calendar->generate(<var>$this->uri->segment(3)</var>, <var>$this->uri->segment(4)</var>);</code>
<p>You'll notice a few things about the above example:</p>