public static function addRoute($path, $action, $module=NULL) {
		
		$route = new \stdClass();
		$route->path	 = $path;
		$route->action	 = $action;
		$route->module	 = $module;

		try {
			self::$instance->routes[] = $route;
		} catch(\Exception $e) {
			die('Router instance has not been created yet');
		}		
		
	}
public static function addRoute($path, $action, $module=NULL) {
		
		$route = new \stdClass();
		$route->path	 = $path;
		$route->action	 = $action;
		$route->module	 = $module;

		try {
			self::$instance->routes[] = $route;
		} catch(\Exception $e) {
			die('Router instance has not been created yet');
		}		
		
	}
public static function addRoute ( $ path , $ action , $ module = NULL ) { $ route = new \ stdClass ( ) ; $ route -> path = $ path ; $ route -> action = $ action ; $ route -> module = $ module ; try { self :: $ instance -> routes [ ] = $ route ; } catch ( \ Exception $ e ) { die ( 'Router instance has not been created yet' ) ; } }
Add a new route path.

@param	string		Path with optional variable placeholders.
@param	string		Action.
@param	string|NULL	Optional module name.
Add a new route path .