CGridView get url in "view" button

Hello, when you display a CGridView, you have the magnifying glass view button on the right column. If you don’t specify a URL, it defaults to the id of that particular row. Is there any way to grab this id value? What I need is to change the url to “something/id”. I’m trying to define the CButton as:

$cbutton = array('class'=>'CButtonColumn',

		'buttons' => array(

			'view' => array(

				'url' => 'ABCDEFG/[the id that this would return if I didn't specify a url]




Any help is appreciated, thanks.

I think that’s what you need

Thank you! You are amazing!!!!