How To Make It Able To Use Composite Primary Keys?

when we have more than 1 primary keys in our table, this error will appears when we want to view our inserted data in our application :

after googling it, I’ve read some people said to change this code:


<?php echo CHtml::link(CHtml::encode($data->BPID), array('view', 'id'=>$data->BPID)); ?>

from _view.php, into:


<?php echo CHtml::link(CHtml::encode($data->BPID), array('view', 'id'=>array('BPID'=>$data->BPID,'PYEAR'=>$data->PYEAR))); ?>

and also modify some file like this one

I’ve tried it all, but it still won’t work. so, anybody can help me to make it able to use composite primary keys? thank you.