i've passed some parameters from a view to a controller function. i see them in the url like : .../view/a1312014031
but i'm not able to use them in the function
here is the view
<a href="<?php echo base_url() ?>visiteur/view/<?php echo $id; echo $mois; ?>" class='btn btn-primary'>Mettre en paiement </a>
here is the controller function
public function view($id = '', $mois = '') {
......
$page = 'visiteur_liste';
$this->load->view('visiteur/' . $page, $data);
....
}
after clicking the link i get url with the parameters.../view/a1312014031 is there a solution to use those parameters in the function without using the session? thanks for your time
<?php echo $id."/"; echo $mois; ?>$data = array('id'=>1234);