I am using Codeigniter 3.0 Calendar Library, I am not getting event text in my CI calendar, Instead of displaying event text it shows link on the number.
Sample Codeigniter Code:
class Welcome extends CI_Controller {
function index()
{
$this->display($year = null, $month = null);
}
public function display($year = null, $month = null)
{
$config = array(
'show_next_prev' => TRUE,
'show_other_days' => TRUE,
'next_prev_url' => site_url('welcome/display')
);
$events = array(
1 =>'test1',
2 =>'test2'
);
$this->load->library('calendar', $config);
echo $data['calendar'] = $this->calendar->generate($year, $month, $events);
}
}
Sample Calendar image (output of above code) :
In the above calender you can see 1st and 2nd days are linked and not displaying events text like test1
and test2
in the calendar, how can i rectify this?