sql网站路径php,如何在源码中找出sql语句的位置呢
查navigation這個model的類
不好意思,這個類有是有,但里面是空的
它里面有這么一句話:
/**
* 獲取導航
*/
Tpl::output('nav_list',($nav = F('nav'))? $nav :H('nav',true,'file'));
不知從這句中查哪里呢
用 debug_backtrace 看一下
用 debug_backtrace 看一下
試了一下,打印出這么一大坨,這怎么判斷呢[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]
我突然想到了,它會不會是一個表單,因為這個是后臺輸入的,只要一輸入就進入這個數組里面,結果一查還真是,不過還有一點疑問,那就是這個數組索引在td中啊,雖然這個td在form表單中,但是就是這樣,他也不會在表單值中啊,因為表單我理解必須在input中才行,這個怎么解釋呢
還有一點就是:這個 $output到底在哪里定義的,它不可能憑空就有的,肯定是在哪里定義的
我搜了下源碼,到是有不少$output,但是都不象定義的初始模樣,很多一看就是引用的。
本文原創發布php中文網,轉載請注明出處,感謝您的尊重!
總結
以上是生活随笔為你收集整理的sql网站路径php,如何在源码中找出sql语句的位置呢的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 万达贷是万达集团的吗
- 下一篇: 玖富万卡提前结清怎么还要这么多