I'm trying to render the media manager field type in a custom form. The form is not loaded from the xml.
this code is causing an error:
$obj = new JFormFieldMedia();
$obj -> __set('name','icon_image');
$obj -> renderField();
Please can you help me?