How can I find the position of an SQL statement in the source code? the arrow in the figure below must be an array, and the array must have been SQL before. I want to find this SQL statement, I don't know how to check the source code? How do I lose the key words?
Reply to discussion (solution)
Find the $ output variable.
Search for $ output on the php page that introduces this template file.
I checked it. no. the introduced page is index. php.
Find the $ output variable.
There are hundreds of references to $ output in the source code. I see my first wedding eyes and flowers, mom's teeth! How can this be solved? are there any other tricks?
Query the class of the model of navigation.
I will post the source code of the index. php import page.
Query the class of the model of navigation.
Sorry, this class does exist, but it is empty. It contains the following sentence:
/**
* Retrieve navigation
*/
Tpl: output ('Nav _ list', ($ nav = F ('Nav '))? $ Nav: H ('Nav', true, 'file '));
I don't know where to look from this sentence.
Debug_backtrace
Debug_backtrace
I tried it and printed it out. how can I judge it?
[code=php]
Array ([0] => Array ([file] => D: \ WWW \ cms \ templates \ default \ layout \ cms_layout.php [line] => 3 [function] => require) [1] => Array ([file] => D: \ WWW \ core \ framework \ libraries \ tpl. php [line] => 118 [args] => Array ([0] => D: \ WWW \ cms \ templates \ default \ layout \ cms_layout.php) [function] => include_once) [2] => Array ([file] => D: \ WWW \ cms \ control \ index. php [line] => 20 [function] => showpage [class] => Tpl [type] => :: [args] => Array ([0] => index) [3] => Array ([file] => D: \ WWW \ core \ framework \ core \ base. php [line] => 97 [function] => indexOp [class] => indexControl [object] => indexControl Object ([publisher_name: protected] => [publisher_id: protected] => 0 [publisher_type: protected] => 0 [attachment_path: protected] => [publish_state: protected] => 2) [type] =>-> [args] => Array () [4] => Array ([file] => D: \ WWW \ core \ framework \ core \ base. php [line] => 52 [function] => control [class] => Base [type] = >:[ args] => Array ()) [5] => Array ([file] => D: \ WWW \ cms \ index. php [line] => 35 [function] => run [class] => Base [type] = >:[ args] => Array ()))
[/Code] I suddenly thought about whether it would be a form, because it is input in the background. as long as one input is made, it will enter the array. it is true to check the result, but there is still some doubt, that is, the array index is in the td. Although this td is in the form, it is like this, and it will not be in the form value, this is because the form must be in input. how can this problem be explained?
Another point is: where is the $ output defined? it cannot be defined out of thin air.
I searched the source code and found that there were a lot of $ output, but none of them looked like the initial definition. a lot of it was referenced.