Answer the question
In order to leave comments, you need to log in
How to find where a variable is used in PHP?
There is an index.php page in which the catalog component is connected, the $filter_site global variable is declared on this page and a named array is placed in it. Searching for a project in Atom does not find anything. How to find where this variable is used? Can it be possible to write something to the variable that will help to find the place where it is used?
Answer the question
In order to leave comments, you need to log in
most likely the filter is used in the form "FILTER_NAME" => "filter_site" when initializing some component (we're talking about Bitrix, right?). That is, search for ""filter_site", without the dollar sign
Use a normal IDE. Here are a few, in flavor and color:
1. PhpShtorm
2. NetBeans
All you have to do is hold down ctrl and click on a variable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question