Skip to content

Instantly share code, notes, and snippets.

@andyhawthorne
Last active December 20, 2015 21:19
Show Gist options
  • Save andyhawthorne/6197242 to your computer and use it in GitHub Desktop.
Save andyhawthorne/6197242 to your computer and use it in GitHub Desktop.
<?php
public function show()
{
$year = $this->uri->segment(3);
$month = $this->uri->segment(4);
$day = $this->uri->segment(5);
$date = $year . '-' . $month . '-' . $day;
$data['day'] = date('d/m/Y', strtotime($date));
$data['tasks'] = $this->tasks_model->day_tasks($date);
$this->load->view('show', $data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment