Link in a template dont work!

Hugilore111

Member
How to pass an additional parameter to a link in a template
I want to pass the second link parameter to my controller &eg=two

Code:
http://test.com/index.php?router/main&type=one&type=two
Code:
$viewParams = array(
            'type'=>$one,
            'type2'=>$type2,
    );
I write like this
Code:
<a href="{xen:link router/example, '','type={$type}' 'type2={$type2}'}"></a>
does not work:(
 

AndyB

Well-known member
I gave $type and $type2 some values and tested on my forum, here is the result:

Code:
https://www.southbayriders.com/forums/router/example?type=1&type2=2
 
Top