public static function addLayout ($name, $className){
		if (!class_exists($className)) {
			throw new \Exception('Invalid Layout class: '.$className);
		}
		static::$layouts[$name] = $className;

		self::addModules($className::getResourceModules());
	}