SERVICES/WIKI.service.php
public function loadWIKIPage($args = null){
		if(!isset($args["namespace"])){
			
		}
		#echo __METHOD__.'@'.__LINE__.'$GLOBALS["route"]<pre>['.var_export($GLOBALS["route"], true).']</pre>'.'<br>'.PHP_EOL;
		$segments = explode('/',$GLOBALS["route"]);
		/**
		echo __METHOD__.'@'.__LINE__.'$segments<pre>['.var_export($segments, true).']</pre>'.'<br>'.PHP_EOL;
		echo __METHOD__.'@'.__LINE__.'$this->cfg<pre>['.var_export($this->cfg, true).']</pre>'.'<br>'.PHP_EOL;
		*/
		
		if( isset($segments[1]) ){
			//$subSegments = explode(':',$segments[1]);
			if(isset($this->cfg[$segments[0]]["FILE_MAP"][$segments[1]])){

				$parsePath = $this->cfg[$segments[0]]["BASE_PATH"].$this->cfg[$segments[0]]["FILE_MAP"][$segments[1]];
				#echo '$parsePath['.$parsePath.']'.PHP_EOL;
				$markdown = file_get_contents($parsePath);

				$Parsedown = new \Parsedown();

				return $Parsedown->text($markdown);
				
			}
			echo __METHOD__.'@'.__LINE__.'$this->cfg['.$segments[0].']["FILE_MAP"]<pre>['.var_export($this->cfg[$segments[0]]["FILE_MAP"], true).']</pre>'.'<br>'.PHP_EOL;
			$index = array_search($segments[1],$this->cfg[$segments[0]]["FILE_MAP"]);
			if(false != $index ){
				$index = $this->cfg[$segments[0]]["FILE_MAP"][$index];
				echo __METHOD__.'@'.__LINE__.'$index<pre>['.var_export($index, true).']</pre>'.'<br>'.PHP_EOL;
			}
		}
		return false;
	}
public function loadWIKIPage($args = null){
		if(!isset($args["namespace"])){
			
		}
		#echo __METHOD__.'@'.__LINE__.'$GLOBALS["route"]<pre>['.var_export($GLOBALS["route"], true).']</pre>'.'<br>'.PHP_EOL;
		$segments = explode('/',$GLOBALS["route"]);
		/**
		echo __METHOD__.'@'.__LINE__.'$segments<pre>['.var_export($segments, true).']</pre>'.'<br>'.PHP_EOL;
		echo __METHOD__.'@'.__LINE__.'$this->cfg<pre>['.var_export($this->cfg, true).']</pre>'.'<br>'.PHP_EOL;
		*/
		
		if( isset($segments[1]) ){
			//$subSegments = explode(':',$segments[1]);
			if(isset($this->cfg[$segments[0]]["FILE_MAP"][$segments[1]])){

				$parsePath = $this->cfg[$segments[0]]["BASE_PATH"].$this->cfg[$segments[0]]["FILE_MAP"][$segments[1]];
				#echo '$parsePath['.$parsePath.']'.PHP_EOL;
				$markdown = file_get_contents($parsePath);

				$Parsedown = new \Parsedown();

				return $Parsedown->text($markdown);
				
			}
			echo __METHOD__.'@'.__LINE__.'$this->cfg['.$segments[0].']["FILE_MAP"]<pre>['.var_export($this->cfg[$segments[0]]["FILE_MAP"], true).']</pre>'.'<br>'.PHP_EOL;
			$index = array_search($segments[1],$this->cfg[$segments[0]]["FILE_MAP"]);
			if(false != $index ){
				$index = $this->cfg[$segments[0]]["FILE_MAP"][$index];
				echo __METHOD__.'@'.__LINE__.'$index<pre>['.var_export($index, true).']</pre>'.'<br>'.PHP_EOL;
			}
		}
		return false;
	}
public function loadWIKIPage ( $ args = null ) { if ( ! isset ( $ args [ "namespace" ] ) ) { } #echo __METHOD__.'@'.__LINE__.'$GLOBALS["route"]<pre>['.var_export($GLOBALS["route"], true).']</pre>'.'<br>'.PHP_EOL; $ segments = explode ( '/' , $ GLOBALS [ "route" ] ) ; /**
		echo __METHOD__.'@'.__LINE__.'$segments<pre>['.var_export($segments, true).']</pre>'.'<br>'.PHP_EOL;
		echo __METHOD__.'@'.__LINE__.'$this->cfg<pre>['.var_export($this->cfg, true).']</pre>'.'<br>'.PHP_EOL;
		*/ if ( isset ( $ segments [ 1 ] ) ) { //$subSegments = explode(':',$segments[1]); if ( isset ( $ this -> cfg [ $ segments [ 0 ] ] [ "FILE_MAP" ] [ $ segments [ 1 ] ] ) ) { $ parsePath = $ this -> cfg [ $ segments [ 0 ] ] [ "BASE_PATH" ] . $ this -> cfg [ $ segments [ 0 ] ] [ "FILE_MAP" ] [ $ segments [ 1 ] ] ; #echo '$parsePath['.$parsePath.']'.PHP_EOL; $ markdown = file_get_contents ( $ parsePath ) ; $ Parsedown = new \ Parsedown ( ) ; return $ Parsedown -> text ( $ markdown ) ; } echo __METHOD__ . '@' . __LINE__ . '$this->cfg[' . $ segments [ 0 ] . ']["FILE_MAP"]<pre>[' . var_export ( $ this -> cfg [ $ segments [ 0 ] ] [ "FILE_MAP" ] , true ) . ']</pre>' . '<br>' . PHP_EOL ; $ index = array_search ( $ segments [ 1 ] , $ this -> cfg [ $ segments [ 0 ] ] [ "FILE_MAP" ] ) ; if ( false != $ index ) { $ index = $ this -> cfg [ $ segments [ 0 ] ] [ "FILE_MAP" ] [ $ index ] ; echo __METHOD__ . '@' . __LINE__ . '$index<pre>[' . var_export ( $ index , true ) . ']</pre>' . '<br>' . PHP_EOL ; } } return false ; }
DESCRIPTOR: an example namespace call
@param param
@return return
DESCRIPTOR : an example namespace call