how to add the custom base url in phtml file magento2

Solutions on MaxInterview for how to add the custom base url in phtml file magento2 by the best coders in the world

showing results for - "how to add the custom base url in phtml file magento2"
Carl
13 Aug 2016
1    <?php echo $block->getUrl('hello/test'); ?>
2    <?php echo $block->getBaseUrl(); ?>
3