Welcome Guest, Not a member yet? Register   Sign In
Using the calendar class
#3

[eluser]gtech[/eluser]
hi, this worked for me, you should be able to cut and paste (all I have really done is renamed the function index to show)

Code:
<?php
class Calender extends Controller {

  function Calender()
  {
    parent::Controller();
    $base = base_url();
    $prefs = array (
      'start_day'    => 'monday',
      'month_type'   => 'long',
      'day_type'     => 'short',
      'show_next_prev' => TRUE,
      'next_prev_url'  => $base."index.php/calender/show"
     );
     $this->load->library('calendar', $prefs);
  }
    
  function show() {
        echo $this->calendar->generate($this->uri->segment(3), $this->uri->segment(4));
  }
}
?>


Messages In This Thread
Using the calendar class - by El Forum - 10-30-2007, 01:18 PM
Using the calendar class - by El Forum - 10-31-2007, 07:15 PM
Using the calendar class - by El Forum - 10-31-2007, 08:19 PM
Using the calendar class - by El Forum - 10-31-2007, 08:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB