Linking With Class Id #

How to linking this?

http://example.com/post/anyone#comments




CHtml::link("Comments", array('post/view', 'title'=>$data->url.'#comments'));



Just add ‘#’ as param.

CHtml::link(“Comments”, array(‘post/view’, ‘title’=>$data->url, ‘#’ => ‘comments’));

Thank you! It work! :)