use frontend\widget\wath\Wath;
<?= Wath::widget(['serial'=>$model,'theSerial'=>0,'class'=>'film']); ?>
class Wath extends Widget{
public $serial;
public $theSerial;
public $class;
public function init()
{
parent::init();
}
public function run(){
{return var_dump($this->class);}
}