You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
810 B
PHTML

5 years ago
<?php
namespace Open\Controller;
use Open\Model\DocumentModel;
use Open\Model\GameModel;
class IndexController extends BaseController
{
public function _initialize()
{
$this->assign("title_head","home");
parent::_initialize(); // TODO: Change the autogenerated stub
}
public function index()
{
$this->assign('account',session('user_info.account'));
$Document = new DocumentModel();
$open_article = $Document->getArticleListsByCategory('open_notice',1);
$open_inform = $Document->getArticleListsByCategory('open_inform',1);
$Game = new GameModel();
$game = $Game->getDataLists(['g.developers'=>['gt',0]],1);
$this->assign("game",$game['data']);
$this->assign("open_article",$open_article['data']);
$this->assign("open_inform",$open_inform['data']);
$this->display();
}
}