src/ChickenWire/Module.php
public static function load($name, $options = array()) {

			// Module already loaded?
			if (array_key_exists($name, self::$_modules)) {
				throw new \Exception("A module with the name $name has already been loaded.", 1);
			}

			// Create and add
			$module = new Module($name, $options);
			self::$_modules[$name] = $module;
			return $module;

		}
public static function load($name, $options = array()) {

			// Module already loaded?
			if (array_key_exists($name, self::$_modules)) {
				throw new \Exception("A module with the name $name has already been loaded.", 1);
			}

			// Create and add
			$module = new Module($name, $options);
			self::$_modules[$name] = $module;
			return $module;

		}
public static function load ( $ name , $ options = array ( ) ) { // Module already loaded? if ( array_key_exists ( $ name , self :: $ _modules ) ) { throw new \ Exception ( "A module with the name $name has already been loaded." , 1 ) ; } // Create and add $ module = new Module ( $ name , $ options ) ; self :: $ _modules [ $ name ] = $ module ; return $ module ; }
Load a Module
@param  string  	The name of the Module
@param  array  	Array of options to apply to the Module (see above).
@return \ChickenWire\Module 		The created Module instance
Load a Module