<?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();
	}
}