New thinkPHP users cannot find a user-defined function. I am new to the company's original SB system, which forces me to learn thinkPHP which is disgusting. On the homepage, IndexAction. class. php finds such an if (hasPrivilege (ReportPV, 0) {$ trees [100] [] & nbsp; array (id & g thinkPHP cannot find a UDF
I am new to the company's original SB system, forcing me to learn thinkPHP which is disgusting.
I found this sentence in the homepage IndexAction. class. php.
If (hasPrivilege ("ReportPV", 0 )){
$ Trees ['20160901'] [] = array ('id' => '20160901', 'text' => 'hangzhou', 'leaf' => true, 'linkurl' => '/tp3_et3/SHIPPINGAnalysis/index. php/stat? Target = profitall ');
}
Apparently, hasPrivilege is a user-defined function,
In which file can I find how the UDF is defined, because I want to modify it.
------ Solution --------------------
Please first read the document on this disgusting framework, which of the following are definitely custom functions? (I have never touched tp, so I am not sure)
------ Solution --------------------
Common/common. php