Skip to content

Commit

Permalink
优化:模板namespace优化,新增Core为默认namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuchunshu committed May 16, 2022
1 parent 9f9e82c commit 36ca641
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/CodeFec/View/HyperfViewEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function render($template, $data, $config): string
// 主题
$name = get_options("theme","CodeFec");
$factory->replaceNamespace("App",theme_path($name."/resources/views"));
$factory->replaceNamespace("Core",theme_path($name."/resources/views"));
return $factory->make($template,$data)->render();
}

Expand Down

0 comments on commit 36ca641

Please sign in to comment.