是否可以考虑给homeLink可以定制a标签的htmlOptions?
因为有时候希望可以给home特殊点的icon,希望通过class来指定~~~
我觉得可以不改变目前使用的情况下,增加这个特性如:
array(
'Sample post'=>array('post/view', 'id'=>12),
'Edit',
)
更改为
array(
'Sample post'=>array('post/view', 'id'=>12, 'htmlOptions'=>array('class'=>'home')),
'Edit',
)
这样在run() 方法中,只需要判断一下是否有htmlOptions,有则抽取出来,作为a标签的htmlOptions属性~