I'm passing two parameters link
public function votar($id) {
echo $id;
die;
}
And it returns me 4-slug-of-something. I just wanted to retrieve the ID but displaying the two parameters in the url, how do I do that?
My route looks like this:
$route['votar/(:any)'] = 'Home/votar/$1';
Vote button
<a href="<?= base_url("votar/{$row->id}-{$row->slug}"); ?>" class="btn btn-vote">VOTAR</a>