here is a question about CHtml::link()
I wanna create a html link such as
http://localhost/index.php?r=blog/article/show&aid=3#commentform
so that the link will go to the form named commentform directly.
i use
CHtml::link('goComment',array('/blog/article/show/','aid'=>$model->id))
, but i really don’t know how to add #commentform behind the link.
The trandition method i can use is
CHtml::link('goComment',Yii::app()->request->baseUrl."/index?r=/blog/article/show&aid=".$model->id."#commentform")
. but i think it will make some trouble when i change my url link style.
any ideas?