Im working on a Wix widget. The iframe containing my widget has this URL generated by Wix:
I tried retriving the instance and compId values from the URL using $_GET but no luck.
echo '<pre>';
print_r($_GET);
echo '</pre>';
gives me
Array
(
[cacheKiller] => 123456
[amp;compId] => hyeddksh
[amp;deviceType] => desktop
[amp;instance] => xxxxxxxxxxxxxx
[amp;locale] => en
[amp;viewMode] => editor
[amp;width] => 50
)
Any idea about retrieving these values without using $_GET[amp;compId] and $_GET[amp;instance]?
EDIT
To solve my issue, I am using $compId = isset($_GET['compId']) ? $_GET['compId'] : $_GET['amp;compId'];
which I believe is not the right way. Anyone?