How to setup Cactive form widget

Calling unknown method: yii\web\View::beginWidget()

you have to be more specific than that, and this is a yii2 forum not yii1