常用方法
常用方法
常用方法
常用方法
/** * */ public function __construct($controllerID, $xml) { $this->_xml = $xml; $this->_controllerID = $controllerID; if (!defined('_WEBSITE_HELPER_CHECKED_PATTERNS_') && count($block = $this->_xml->xpath("//patterns")) > 0) { define('_WEBSITE_HELPER_CHECKED_PATTERNS_', true); Website::setUrlPatterns($block[0]->pattern); } }