[eluser]edwa5823[/eluser]
I am having trouble wrapping my brain around this problem and would like some assistance if at all possible.
I have just reached the first point where I need to instantiate a class more than once inside of a controller (using the calendar class), but I am not sure how to do that. I am just now learning how OOP really works, so I am afraid it is my ignorance and not a limitation of the framework--would someone be nice enough to point me in the right direction?
I am currently doing this:
Code:
$prefs = array (
'start_day' => 'saturday',
'month_type' => 'long',
'day_type' => 'long',
'show_next_prev' => TRUE,
'next_prev_url' => 'http://mydomain/index.php/events/calendar/',
);
$this->load->library('calendar', $prefs);
and then echoing the calendar in a view.
Now the problem is that I want to have one MAIN calendar that takes the above set of $prefs and then have three other calendars on the page with a different set of prefs. This would require a new instantiation of calendar.
Thanks in advance!!