In my controller I have this portion of a code:
$providers = Providers::find();
and in my view I have :
echo $this->tag->Select(
[
'prodID',
$providers , // variable from controller , to populate select tag
'using' =>[
'id',
'name',
]
]
);
How to pass the result of Find method from controller to select tag ?
And an another question - is it possible (and how) to set "id" and "name" of select tag separately ?
thanks in advance for your help :)