[eluser]Unknown[/eluser]
Hi all,
I'm a webdev but i'm kindly new to CI ...
I tried to generate a calendar using the calendar class, here is my code :
Code:
<?php
$prefs = array (
'show_next_prev' => TRUE,
'next_prev_url' => 'http://example.com/index.php/calendar/show/'
);
$this->load->library('calendar', $prefs);
echo $this->calendar->generate($this->uri->segment(3), $this->uri->segment(4));
?>
As you can see, i just tried the example available in the user_guide, but it doesn't work for me ... I get this error :
Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_Loader::$calendar
Filename: views/agenda.php
Line Number: 9
Fatal error: Call to a member function generate() on a non-object in D:\WEB\wamp\wamp\www\TUT\system\application\views\agenda.php on line 9
I tried a var_dump on $this->calendar after loading it, and I get a NULL type.
Any idea ?
Thanks for the consideration,
ZaTo_MaSo