sql网站路径php,如何在源码中找出sql语句的位置呢
查navigation這個(gè)model的類
不好意思,這個(gè)類有是有,但里面是空的
它里面有這么一句話:
/**
* 獲取導(dǎo)航
*/
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]
我突然想到了,它會(huì)不會(huì)是一個(gè)表單,因?yàn)檫@個(gè)是后臺(tái)輸入的,只要一輸入就進(jìn)入這個(gè)數(shù)組里面,結(jié)果一查還真是,不過還有一點(diǎn)疑問,那就是這個(gè)數(shù)組索引在td中啊,雖然這個(gè)td在form表單中,但是就是這樣,他也不會(huì)在表單值中啊,因?yàn)楸韱挝依斫獗仨氃趇nput中才行,這個(gè)怎么解釋呢
還有一點(diǎn)就是:這個(gè) $output到底在哪里定義的,它不可能憑空就有的,肯定是在哪里定義的
我搜了下源碼,到是有不少$output,但是都不象定義的初始模樣,很多一看就是引用的。
本文原創(chuàng)發(fā)布php中文網(wǎng),轉(zhuǎn)載請(qǐng)注明出處,感謝您的尊重!
總結(jié)
以上是生活随笔為你收集整理的sql网站路径php,如何在源码中找出sql语句的位置呢的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 万达贷是万达集团的吗
- 下一篇: 玖富万卡提前结清怎么还要这么多