Hi i'm working on a calender when you click a day it shows you all tasks for that day. this is the code in the view.
$calendar.= '<td class="calendar-day">';
$calendar.= '<a href="evenement/showTaken/day/'. $list_day .'/maand/'.$month.'/jaar/'.$year.'">';
$calendar.= '<div class="day-number">'.$list_day.'</div>';
/** QUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !! IF MATCHES FOUND, PRINT THEM !! **/
$_evenement = new evenement();
$taak = $_evenement -> dateChecker($list_day,$month,$year);
$calendar.= $taak;
$calendar.= '</a></td>';
this is the code in the controller
public function showTaken(){
$this->load->model('model_taak');
$get = $this->uri->uri_to_assoc();
$dag = $get['day'];
$maand = $get['maand'];
$jaar = $get['jaar'];
$datum = date('M Y', mktime(0,0,0,$maand + 1,0,$jaar));
$this->load->template('view_evenement', 'evenement', array(
'maand' => $maand,
'jaar' => $jaar,
'datum' => $datum,
'infovandaag' => $dag.'/'.$maand.'/'.$jaar,
'taakvandaag' => $this->model_taak->takenByDate($dag.'/'.$maand.'/'.$jaar)
the problem i have is that when i click multiple days after eachother the link ends up something like this and will keep showing the first day clicked.
/code/index.php/evenement/evenement/showTaken/day/2/maand/2/jaar/evenement/showTaken/day/3/maand/03/jaar/evenement/showTaken/day/4/maand/03/jaar/evenement/showTaken/day/4/maand/03/jaar/2014
any idea how i could solve this? this is the first time i post here so i hope i gave you enough information.