first commit
This commit is contained in:
38
config/view.php
Normal file
38
config/view.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
use support\view\Raw;
|
||||
use support\view\Twig;
|
||||
use support\view\Blade;
|
||||
use support\view\ThinkPHP;
|
||||
|
||||
return [
|
||||
'handler' => ThinkPHP::class,
|
||||
'options' => [
|
||||
'tpl_cache' => true,
|
||||
'taglib_begin' => '<',
|
||||
'taglib_end' => '>',
|
||||
'taglib_pre_load' => implode(',', array_merge(['app\common\taglib\SaLibs'],include __DIR__ . '/taglib.php')),
|
||||
'tpl_replace_string' => [
|
||||
'__STATIC__' => '/static/',
|
||||
'__STATICJS__' => '/static/js/',
|
||||
'__STATICCSS__' => '/static/css/',
|
||||
'__STATICIMAGES__' => '/static/images/',
|
||||
'__STATICADMIN__' => '/static/system/',
|
||||
'__ADMINIMAGES__' => '/static/system/images/',
|
||||
'__ADMINPLUGIN__' => '/static/system/plugin/',
|
||||
'__HOMEPLUGIN__' => '/static/plugin/',
|
||||
]
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user