TaoLer/app/admin/controller/Index.php

47 lines
752 B
PHP
Raw Normal View History

2020-01-01 13:17:19 +08:00
<?php
namespace app\admin\controller;
use app\common\controller\AdminController;
use think\facade\View;
use think\facade\Db;
use think\facade\Session;
use think\facade\Request;
use app\admin\model\Admin;
use app\admin\model\Article;
class Index extends AdminController
{
protected function initialize()
{
parent::initialize();
}
public function index()
{
return View::fetch('index');
}
public function set()
{
return view();
}
public function message(){
return view();
}
public function home(){
$sys = Db::name('system')->find(1);
View::assign('sys',$sys);
return View::fetch();
}
public function layout(){
return view();
}
}