Use Yii methods in example controller

looks good, but let it be consistent with other examples