The default Admin View shows a data grid, and each row has a VIEW / UPDATE / DELETE button.
I've recently changed my Primary Key, so for the Table concerned, its no longer 'ID' its now 'ID_LEAD'..
So if you click UPDATE, it tries to load
/index.php?r=leads/update&id=7840
But i need it to load
/index.php?r=leads/update&id_lead=7840
I've experimented with changing the CButtonColumn in the Admin View:
array
(
'class'=>'CButtonColumn',
'template'=>'{view}{update}{delete}',
'buttons'=>array
(
'update' => array
(
'url'=>'"index.php?r=leads/update&id_lead="',
),
),
),It shows the URL:
/index.php?r=leads/update&id_lead=
but I dont know how to get the value of 'id_lead' in there... also it feels abit too clunky to do this..
Can this be set sitewide - im guessing, its built into the Framework, and i obviously dont want to hack that..

Help















