/**
  * Lists all MarcaVeiculo models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => MarcaVeiculo::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }
<div class="veiculo-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'nomeveiculo')->textInput(['maxlength' => true]);
?>
    
    <?php 
echo $form->field($model, 'cor')->textInput(['maxlength' => true, 'style' => 'width:200px']);
?>
    
    <?php 
echo $form->field($model, 'idmarcaveiculo')->dropDownList(ArrayHelper::map(MarcaVeiculo::find()->all(), 'idmarcaveiculo', 'nomemarca'), ['prompt' => 'Selecione uma marca', 'style' => 'width:200px']);
?>

	<table>
		<tr>
			<td>
				<?php 
echo $form->field($model, 'anofabricacao')->textInput(['maxlength' => 4, 'style' => 'width:150px', 'integerOnly' => true]);
?>
			</td>
			<td>
				<?php 
echo $form->field($model, 'anomodelo')->textInput(['maxlength' => 4, 'style' => 'width:150px', 'integerOnly' => true]);
?>
			</td>
		</tr>