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

WBOY
Release: 2016-06-13 10:57:42
Original
803 people have browsed it

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');                    }
Copy after login

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

------解决方案--------------------
请先看这个恶心框架的文档,里面绝对有在哪自定函数等(我也没接触过tp,所以不清楚)
------解决方案--------------------
Common/common.php
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!