예제 #1
0
파일: Form.php 프로젝트: dp-ifacesoft/micro
 /**
  * Render image field tag
  *
  * @access public
  *
  * @param IFormModel $model model
  * @param string $property model property
  * @param array $options attributes array
  *
  * @return string
  */
 public function imageField(IFormModel $model, $property, array $options = [])
 {
     $element = $this->getField($model, $property);
     $options['id'] = $element['id'];
     $image = !empty($options['image']) ? $options['image'] : [];
     return Html::imageField($element['name'], $element['value'], $image, $options);
 }