New thinkPHP users cannot find a user-defined function. I am new to the company's original SB system, forcing me to learn thinkPHP which is disgusting. I found such a PHPcodeif (hasPrivilege (& quot; ReportPV & quot;, 0) in the homepage IndexAction. class. php. {$ trees [new thinkPHP user-defined function cannot be found.
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.
PHP code
If (hasPrivilege ("ReportPV", 0) {$ trees ['20140901'] [] = array ('id' => '20160901 ', 'text' => 'Route ', '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