提交 1cf74428 编写于 作者: ModStart's avatar ModStart

develop

上级 b1fb5e50
......@@ -15,7 +15,7 @@ class ModuleServiceProvider extends ServiceProvider
*/
public function boot(Dispatcher $events)
{
include __DIR__ . '/../Helpers/MBanner.php';
require_once(__DIR__ . '/../Helpers/MBanner.php');
AdminMenu::register([
[
......
......@@ -26,7 +26,7 @@ class ModuleServiceProvider extends ServiceProvider
*/
public function boot(Dispatcher $events)
{
require_once __DIR__ . '/../Helpers/MCms.php';
require_once(__DIR__ . '/../Helpers/MCms.php');
AdminWidgetLink::register(function () {
$menu = [];
......
......@@ -15,7 +15,7 @@ class ModuleServiceProvider extends ServiceProvider
*/
public function boot(Dispatcher $events)
{
include __DIR__ . '/../Helpers/MNav.php';
require_once(__DIR__ . '/../Helpers/MNav.php');
AdminMenu::register([
[
......
<?php
\Illuminate\Support\Facades\Log::info('aaa');
//class MNav
//{
// public static function all($position = 'head')
// {
// $records = \Module\Nav\Util\NavUtil::listByPositionWithCache($position);
// foreach ($records as $i => $v) {
// $records[$i]['_attr'] = \Module\Nav\Type\NavOpenType::getBlankAttributeFromValue($v);
// }
// return $records;
// }
//}
\ No newline at end of file
class MNav
{
public static function all($position = 'head')
{
$records = \Module\Nav\Util\NavUtil::listByPositionWithCache($position);
foreach ($records as $i => $v) {
$records[$i]['_attr'] = \Module\Nav\Type\NavOpenType::getBlankAttributeFromValue($v);
}
return $records;
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册