Answer the question
In order to leave comments, you need to log in
What's wrong with creating a widget?
this is how i use it in the view
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);}
}
Answer the question
In order to leave comments, you need to log in
if the widget does nothing more with this parameter, then most likely there is a typo in the word "class" somewhere (Russian letter "c")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question