// some controller method
public function action_calendar($view = null, $year = null, $month = null, $day = null)
{
//setting config
$config = array(
'dates_as_links' => true,
'navigation' => true,
'navigation_url' => \Config::get('base_url').'events/view/calendar/',
'viewpath' => 'events/content/',
);
// passing data $key = date, $value = array()
$data = array(
'12' => array( //$key = text or link - link will overwrite default 'dates_as_links' to this value
'text' => 'this will appear in calendar day of 12',
'link' => 'http://www.google.com' // #12 will now link to google
),
);
$this->response->body = \Calendar::forge('calendar', $config)->build($view, $year, $month, $day, $data);
}
It looks like you're new here. If you want to get involved, click one of these buttons!