function _before() { $this->smarty = SimpleTemplate::getInstance(); $this->urlParam = array_merge($_GET, $_POST); //重置country $host = $_SERVER['HTTP_HOST']; $host = explode('.', $host); if (!preg_match('/\\d/', $host[0])) { $this->country = $host[0]; } //cms数据merge $this->cmsData(); }