public static function exists($view, $return_path = false)
	{
		if (starts_with($view, 'name: ') and array_key_exists($name = substr($view, 6), static::$names))
		{
			$view = static::$names[$name];
		}
		
		list($bundle, $view) = Bundle::parse($view);

		$view = str_replace('.', '/', $view);

		// We delegate the determination of view paths to the view loader event
		// so that the developer is free to override and manage the loading
		// of views in any way they see fit for their application.
		$path = Event::until(static::loader, array($bundle, $view));

		if ( ! is_null($path))
		{
			return $return_path ? $path : true;
		}

		return false;
	}
public static function exists($view, $return_path = false)
	{
		if (starts_with($view, 'name: ') and array_key_exists($name = substr($view, 6), static::$names))
		{
			$view = static::$names[$name];
		}
		
		list($bundle, $view) = Bundle::parse($view);

		$view = str_replace('.', '/', $view);

		// We delegate the determination of view paths to the view loader event
		// so that the developer is free to override and manage the loading
		// of views in any way they see fit for their application.
		$path = Event::until(static::loader, array($bundle, $view));

		if ( ! is_null($path))
		{
			return $return_path ? $path : true;
		}

		return false;
	}
public static function exists ( $ view , $ return_path = false ) { if ( starts_with ( $ view , 'name: ' ) and array_key_exists ( $ name = substr ( $ view , 6 ) , static :: $ names ) ) { $ view = static :: $ names [ $ name ] ; } list ( $ bundle , $ view ) = Bundle :: parse ( $ view ) ; $ view = str_replace ( '.' , '/' , $ view ) ; // We delegate the determination of view paths to the view loader event // so that the developer is free to override and manage the loading // of views in any way they see fit for their application. $ path = Event :: until ( static :: loader , array ( $ bundle , $ view ) ) ; if ( ! is_null ( $ path ) ) { return $ return_path ? $ path : true ; } return false ; }
Determine if the given view exists.

@param  string       $view
@param  boolean      $return_path
@return string|bool
Determine if the given view exists .