add tooltip to link yii

Hello everybody I hope you are all fine.

I have this code




<?php echo CHtml::link('<img src="/atelier/wi-comptable/images/icones/reinitial.png" style="float: right;" alt="alt" />', array('datecles/admin'));?>



I want to add tooltip title please any help

Do you need a custom tooltip? Or just ‘title’ attribute?

If second variant, then use


echo CHtml::link('Link Text',array('controller/action',

                   'param1'=>'value1'), 

                    array('class'=>'class_name',

                          'id'=>'id_name',

                          'title' => 'title_text'                              

                          );