automaticaly created links

I have a column name somewhere in the project. Let’s say in grid view:


array(

			'name'=>'book_name',

			'value'=>'$data->name',

			'type'  => 'raw',

		),



The “name” should be automatically a link wherever I display it. I don’t want to use something like this every time I need the link.


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

maybe the config file could handle it.Or a function which takes care about creating the link?