Sry, maybe a stupid question, but I’m not able to get a $_GET param in my panel field. For my plugin, I need to show data depending on it. The url is as follows: http://localhost:8000/panel/site?tab=order&id=4
I tried param(), get() and other methods. Actually, the entire params() is empty. Appreciate your help on how to get my query $_GET param into my function here.
As far as I currently understand it (I’m only 80% sure): The fields section is loaded asynchronously (like other sections) through its own API request. So the query you see in your browser in the Panel is not part of the request that runs when getting the fields (and executing this PHP part).
Hey, thank you both!
I was able to get the parameter in the vue file, thats true. But that actually doesn’t help me, since I need the GET param in the index.php because i want to do some DB select stuff with the get parameter. However, for the people in need, this is how you can get it inside the vue component itself: