In magento 2.1.X, I am trying to append some text in my template file using a block within my custom controller. But i receive an error when doing so (my html markup is working just fine).
My block extends \Magento\Framework\View\Element\Template and my controller is kept basic for the moment as I will build a form with it.
in my template .phtml file, this is what i try to do
<section id="careers-section">
<?php echo $this->__('test'); ?>
</section>
What have I done wrong?