I have a problem when i try to add other parameter to URL. before i use Codeigniter i add those parameters using JavaScript like this
<a href="javascript:addParam(window.location.href, 'display', 'param1');">test</a>
but when i tried to do it with Codeigniter i don't know how.
<?php echo anchor("home/index/param1","test"); ?>
as i said i want to add this parameter for example my URL looks like this
home/index/param2
so when i click on test i want the URL to be like this
home/index/param2/param1