美文网首页
thinkphp 3.1.3 自定义函数和自定义CSS和js路径

thinkphp 3.1.3 自定义函数和自定义CSS和js路径

作者: 小祈祈博客 | 来源:发表于2019-02-13 11:59 被阅读0次

自定义函数库

如果在自定义函数 P 要在common 文件夹建立 common.php文件

p($_SERVER);

common.php--->>>

function p($array){

dump($array,1,’<pre>’,0);

}

加载其他文件函数需要在配置文件写入

‘LOAD_EXT_FILE’=>’function’

load(‘@.function’);

say()

模板CSS或者JS路径替换

‘TMPL_PARSE_STRING’=>array(

‘/Public’=>.’/’.APP_NAME.’/Tpl/Public/’,

)

相关文章

网友评论

      本文标题:thinkphp 3.1.3 自定义函数和自定义CSS和js路径

      本文链接:https://www.haomeiwen.com/subject/unwreqtx.html