我有我正在定义的这个静态变量,但我的代码中出现错误:
..意外的'$_SERVER'(T_VARIABLE)在...
class Constants {
const ACCOUNTTYPE_SUPER_ADMIN = 1;
const ACCOUNTTYPE_COMPANY_ADMIN = 2;
const ACCOUNTTYPE_AREA_ADMIN = 3;
const ACCOUNTTYPE_END_USER = 4;
const SAVETYPE_NEW = 0;
const SAVETYPE_EDIT = 1;
const LICENSE_VALIDITY_YEARS = 1;
const LICENSE_VALIDITY_LEFT_MAX = 12;
public static $template_path = $_SERVER['DOCUMENT_ROOT'] . '/../_html/';
}