How to create links with #

Hello ,

can anyone help me in finding if it is possible in CHtml::link() to generate url with this format http://www.example.com/index.php?r=items/index#detail

Thanks

Rasikh Mashhadi

راسخ مشہدی

Try setting the # property




<?php echo CHtml::link('I am an anchor link',array('url','#'=>'anchor'))?>