47 lines
752 B
PHP
47 lines
752 B
PHP
<?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();
|
|
}
|
|
} |