Undefined variable:$modelWilaya

I was working with dynamic form but I get an error ( undefined variable=>$modelWilaya)
In Create. Php file which deals with data for the second table. How can i solve this?

Hi @Rainald,

Could you please show us your code, or no one will be able to help you.
What do you have in your controller and view regarding the form?