<?php
 namespace PHPEMS;
/*
 * Created on 2016-5-19
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
class action extends app
{
	public function display()
	{
		if(!$this->_user['sessionuserid'])
		{
			$message = array(
				'statusCode' => 301,
				"message" => "请您重新登录",
				"callbackType" => 'forward',
				"forwardUrl" => "index.php?user-phone-login"
			);
			\PHPEMS\ginkgo::R($message);
		}
		$this->tpl->assign('_user',$this->user->getUserById($this->_user['sessionuserid']));
		$action = $this->ev->url(3);
		if(!method_exists($this,$action))
		$action = "index";
		$this->$action();
		exit;
	}

	public function index()
	{
		$this->tpl->display('index');
	}
}


?>
