'__PUBLIC__'自定义常量有关的链接打开都异常<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
return [
'url_route_on' => true,
'log' => [
'type' => 'trace', // 支持 socket trace file
],
//输出转换
'view_replace_str'=>[
'__PUBLIC__'=>'/thinkphp5_home/public',
'__SITE__'=>'/thinkphp5_home',
'__ROOT__' => '/',
],
];
最佳答案