Posted By

jdhall75 on 04/01/12


Tagged

calendar codeigniter


Versions (?)

CI calendar class init


 / Published in: PHP
 

Initializing the update calendar class

  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  

You need to login to post a comment.