Skip to main content
improved formatting
Source Link
Qaisar Satti
  • 32.5k
  • 18
  • 87
  • 137

You could add image field in _prepareForm() method of your admin form:
$fieldset->addField( 'imagefieldname', 'image', array( 'name' => 'imagefieldname', 'label' => __('Image'), 'title' => __('Image') ) );

$fieldset->addField(
    'imagefieldname',
    'image',
    array(
        'name' => 'imagefieldname',
        'label' => __('Image'),
        'title' => __('Image')
    )

  );

You could add image field in _prepareForm() method of your admin form:
$fieldset->addField( 'imagefieldname', 'image', array( 'name' => 'imagefieldname', 'label' => __('Image'), 'title' => __('Image') ) );

You could add image field in _prepareForm() method of your admin form:

$fieldset->addField(
    'imagefieldname',
    'image',
    array(
        'name' => 'imagefieldname',
        'label' => __('Image'),
        'title' => __('Image')
    )

  );
Source Link

You could add image field in _prepareForm() method of your admin form:
$fieldset->addField( 'imagefieldname', 'image', array( 'name' => 'imagefieldname', 'label' => __('Image'), 'title' => __('Image') ) );