How to assign header to id of ajaxLink?

Hi all:

I have a problem when I use ajaxLink.

I have two-level menus and I use ajax to render it.

however, when I use ajaxLink in the second level, it won’t work because yii give them the same id (#yt0) as the ones generated in the first level.

Then I come up with a solution: give the header to the id of each ajaxLink so that there won’t be this problem.

But I don’t know how. Please help, thanks!

Or is there any better solution about to solve this problem?


you can set the ids manually by the parameter $htmlOptions