diff options
Diffstat (limited to 'user_guide/libraries')
-rw-r--r-- | user_guide/libraries/calendar.html | 8 |
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 />
'show_next_prev' => TRUE,<br />
'next_prev_url' => 'http://www.your-site.com/index.php/calendar/show/'<br />
);<br />
<br />
-echo $this->calendar->generate(<var>$this->uri->segment(3)</var>, <var>$this->uri->segment(4)</var>, $prefs);</code>
+$this->load->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>
|