基础功能

This commit is contained in:
wuyanwen
2019-12-06 08:24:07 +08:00
parent 6b4dd70752
commit 397c8bb7f7
614 changed files with 57215 additions and 216 deletions

View File

@@ -93,26 +93,4 @@ abstract class BaseController
return $v->failException(true)->check($data);
}
/**
*
* @time 2019年11月28日
* @param string $template
* @throws \Exception
* @return string
*/
protected function fetch($template = ''): string
{
if (Str::contains($template, '::')) {
[$module, $template] = explode('::', $template);
View::config([
'view_path' => CatchAdmin::getViews()[$module]
]);
return View::fetch($template);
}
return View::fetch($template);
}
}