ReyDev Posted February 14, 2021 Share Posted February 14, 2021 (edited) I'm working with Radio Helper with 'parse'=>'image' option in a widget . look at this please: $form->add(new \IPS\Helpers\Form\Radio("var_name", isset($widgetConfig['var_name']) ? $widgetConfig['var_name'] : 'val1', FALSE, array( 'parse' => 'image', 'options' => [ 'val1' => \IPS\Theme::i()->resource('display/filename.jpg', 'myapp', 'admin'), 'val2' => \IPS\Theme::i()->resource('display/filename2.jpg', 'myapp', 'admin') ] , 'descriptions' => [ 'val1' => 'Description', 'val2' => 'Description' ] ))); in the development mode, the code works and shows images with radio button but in the production mode doesn't work . Edited February 14, 2021 by ReyDev Link to comment Share on other sites More sharing options...
Solution ReyDev Posted February 15, 2021 Author Solution Share Posted February 15, 2021 (edited) solved! the problem exists on localhost, but in remote server works !!! Edited February 15, 2021 by ReyDev Link to comment Share on other sites More sharing options...
Recommended Posts