<?php$form=yiiwidgetsActiveForm::begin(['action'=>yiihelpersUrl::to('name/create')]);echo $form->field($model,'name')->textInput( );echo $form->field($model,'img')->fileInput();echo yiihelpersHtml::submitButton();$form->end();?>