Last active
October 12, 2015 09:47
-
-
Save andyhawthorne/4008367 to your computer and use it in GitHub Desktop.
show method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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