[eluser]Drinian[/eluser]
Hi,
I've been trying to use the Calendaring class. The documentation seems to have an error in it regarding "Showing Next/Previous Month Links". It has you passing the prefs in the generate method, and I think it should be when you load the class.
However, even accounting for that, I can't get the next/previous links to work. They form properly but when you click on them I get a 404 page. Any advice? Thanks in advance.
Here's the code:
class Cal extends Controller {
function index() {
$prefs = array ('start_day' => 'saturday',
'month_type' => 'long',
'day_type' => 'short',
'show_next_prev' => TRUE,
'next_prev_url' => 'http://www.mydomain.com/index.php/cal/'
);
$this->load->library('calendar', $prefs);
echo $this->calendar->generate($this->uri->segment(3), $this->uri->segment(4));
}
}