E
E
eldar_web2014-12-11 13:13:11
Yii
eldar_web, 2014-12-11 13:13:11

Yii СActiveForm how to write input type='file' ?

This writes a normal field:
<?php echo $form->textField($model,'address'); ?>
But how to write input of type file ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2014-12-11
@eldar_web

$form->fileField($model, 'field')
why don't you read the docs

G
GreatRash, 2017-04-12
@GreatRash

var test = {
  mySuperMethod: function() {
    alert(arguments.callee.name);
  }
};

test.mySuperMethod();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question