Siemanko, korzystam z IPS 4.4.10
W trybie developera kod:
$skins = \IPS\Theme::i()->resource( 'smallskins/', 'mtacharacter', 'front' );
Zwraca
object(IPS\Http\Url\Internal)#101 (8) { ["seoPagination"]=> NULL ["base"]=> string(4) "none" ["isInternal"]=> bool(true) ["isFriendly"]=> bool(false) ["url":protected]=> string(88) "https://allerekserver.pl/forum/applications/mtacharacter/dev/resources/front/smallskins/" ["data"]=> array(8) { ["scheme"]=> string(5) "https" ["host"]=> string(16) "allerekserver.pl" ["port"]=> NULL ["user"]=> NULL ["pass"]=> NULL ["path"]=> string(64) "/forum/applications/mtacharacter/dev/resources/front/smallskins/" ["query"]=> string(0) "" ["fragment"]=> NULL } ["queryString"]=> array(0) { } ["hiddenQueryString"]=> array(0) { } }
Za to w normalnym trybie zwraca
'NULL'
To ważne gdyż korzystam z tego by wyświetlać wiele obrazków, jeden za drugim
$form->add( new \IPS\Helpers\Form\Radio("create_female_skins", NULL, TRUE, [
"options" => [9 => $skins . '9.jpg', 10 => $skins . '10.jpg', 11 => $skins . '11.jpg'],//Jest tu tego więcej, ale tutaj uciąłem dla czytelności
"parse" => "image",
"gridspan" => 1,
], NULL, NULL, NULL, 'create_female_skins'));