echo $options; ?> </select> </div> </div> <?php echo $form->field($model, 'name')->textInput(['maxlength' => 64]); ?> <?php echo $form->field($model, 'url')->textInput(['maxlength' => 512]); ?> <?php echo $form->field($model, 'target')->radioList(Constants::getTargetItems()); ?> <?php echo $form->field($model, 'thumb')->fileInput(['class' => 'da-custom-file']); ?> <?php echo $form->field($model, 'description')->textarea(['maxlength' => 512]); ?> <?php echo $form->field($model, 'sort_num')->textInput();
public function getTargetText() { return Constants::getTargetItems($this->target); }