Linking To A Controller Action With Querystring Parameters

Since I’m realy new to Yii. I want someone’s help… I want to display all data with status=occupied

I’m using this code

<?php echo CHtml::link(‘Occupied Apartments’, array(’/apartments’,‘status’=>‘occupied’)); ?> &nbsp;

But it returns all data even with status=available

Any help?