HDRI + white background

Is there a way to render an object with a hdri lighting with yafray but so that in the render in the background is just one color not the hdri image?

yes, of course. in the render settings, look at the render-block. at the bottom you can set Key to on. this keys your background with an alpha. now you can layer a different background via the compositor or how ever you want.

I usually just put a plane with a shadeless material behind your scene so that it becomes the background.

Thanks for the replays.i didnt know about the “key” button.Also the idea of the shadeless plane sounds great,quick and good looking. I will try both ideas