CI calendar class init


/ Published in: PHP
Save to your folder(s)

Initializing the update calendar class


Copy this code and paste it in your HTML
  1. $this->load->library('My_Calendar', $prefs, 'cal');
  2.  
  3. $data = array(
  4. 3 => array(
  5. array('link_text' => 'Yahoo', 'link' => 'http://www.yahoo.com')
  6. ),
  7. 7 => array(
  8. array('link_text' => 'Google', 'link' => 'http://www.google.com')
  9. )
  10. );
  11.  
  12. $this->data['cal'] = $this->cal->generate('','',$data);
  13. $this->load->view('head', $this->data);
  14. $this->load->view('body_schedule', $this->data);
  15. $this->load->view('foot');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.