Adrianna
(Rhea Uplb)
1
Hi. I know to open the files in new tab in CHtml::link but how about if my code is something like this…
echo 'Current file: ';
echo '<a href="files/docs/'.$modelf->file_location.'">('.$pdf[0].'.pdf)</a> ';
What line of code should I add if I want that link to open in new tab? Need help here. Thank you.
Adrianna
(Rhea Uplb)
2
Answering my own question
I just have to add target="_blank" to set the link to open in new tab. Yeah. That easy .