Welcome Guest, Not a member yet? Register   Sign In
Loading the calendar class in views

I have loaded it in a constructor but i don't know how to load it in a view. I used $this->library('calendar'); to load the library but it says 'Call to a member function generate()'

Any help would be greatly appreciated, thanks.

Any help at all?

[eluser]Michael Wales[/eluser]
  Put all of your configuration stuff here
  $config = array();
$this->load->library('calendar', $config);

<?= $this->calendar->generate($year, $month); ?>

Ah thanks, silly me. Thanks for the help.

Theme © iAndrew 2016 - Forum software by © MyBB