mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
去掉 VIEW_PATH 常量定义
This commit is contained in:
@@ -91,8 +91,8 @@ class Php
|
||||
*/
|
||||
private function parseTemplate($template)
|
||||
{
|
||||
if (empty($this->config['view_path']) && defined('VIEW_PATH')) {
|
||||
$this->config['view_path'] = VIEW_PATH;
|
||||
if (empty($this->config['view_path']) && defined('MODULE_PATH')) {
|
||||
$this->config['view_path'] = MODULE_PATH . 'view' . DS;
|
||||
}
|
||||
|
||||
if (strpos($template, '@')) {
|
||||
|
||||
@@ -35,8 +35,8 @@ class Think
|
||||
public function __construct($config = [])
|
||||
{
|
||||
$this->config = array_merge($this->config, $config);
|
||||
if (empty($this->config['view_path']) && defined('VIEW_PATH')) {
|
||||
$this->config['view_path'] = VIEW_PATH;
|
||||
if (empty($this->config['view_path']) && defined('MODULE_PATH')) {
|
||||
$this->config['view_path'] = MODULE_PATH . 'view' . DS;
|
||||
}
|
||||
$this->template = new Template($this->config);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user