Home  >  Article  >  Backend Development  >  thinkPHP生手找不到一个自定义函数

thinkPHP生手找不到一个自定义函数

WBOY
WBOYOriginal
2016-06-13 13:07:07813browse

thinkPHP新手找不到一个自定义函数
我是刚接触公司原来的一SB系统,逼着我必须学习 thinkPHP很恶心的那种。
我在主页IndexAction.class.php中发现这么一句

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->            if(hasPrivilege("ReportPV",0)){
                $trees['100'][] = array('id'=>'100007','text'=>'航线','leaf'=>true,'linkurl'=>'/tp3_et3/SHIPPINGAnalysis/index.php/stat?target=profitall');        
            }

很明显hasPrivilege是一个自定义函数,
请问,我在哪个文件下可以找到这个自定义函数是如何定义的,因为我要修改。

------解决方案--------------------
请先看这个恶心框架的文档,里面绝对有在哪自定函数等(我也没接触过tp,所以不清楚)
------解决方案--------------------
Common/common.php
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn