Skip to content

Instantly share code, notes, and snippets.

@andyhawthorne
Created November 2, 2012 23:28
Show Gist options
  • Select an option

  • Save andyhawthorne/4005009 to your computer and use it in GitHub Desktop.

Select an option

Save andyhawthorne/4005009 to your computer and use it in GitHub Desktop.
Tasks constructor
class Welcome extends CI_Controller
{
public function __construct()
{
parent:: __construct();
$this->load->model('tasks_model');
$prefs = array (
'show_next_prev' => TRUE,
'next_prev_url' => 'http://tasks.dev/welcome/index'
);
$this->load->library('calendar', $prefs);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment