helpers.php
/**
	 * function view is for routing,
	 * it sets view path and data
	 * @param   	string 	$path
	 * @param   	array 	$var
	 * @return   	object  stdClass
	 */
function view is for routing,
it sets view path and data
@param       string  $path
@param       array   $var
@return      object  stdClass
function view is for routing it sets view path and data @param string $path @param array $var @return object stdClass
function view(string $path,array $var = [])
	{
		$view = new stdClass;
		$view->path = preg_replace("/\./", "/", $path);
		if (count($var) > 0) {
			$view->data = $var;
		}
		return $view;
	}
function view ( string $ path , array $ var = [ ] ) { $ view = new stdClass ; $ view -> path = preg_replace ( " /\./ " , " / " , $ path ) ; if ( count ( $ var ) > 0 ) { $ view -> data = $ var ; } return $ view ; }
function view is for routing,
 it sets view path and data
 @param       string  $path
 @param       array   $var
 @return      object  stdClass
function view is for routing it sets view path and data @param string $path @param array $var @return object stdClass