This question is not very clear. In any case, I assume that you created your project correctly. To print "hello world" in your browser, make this small change:
In IndexController.php inside the indexAction () method write:
$this->view->String = 'hello world';
Now go to the index.phtml file in the view / scripts / index section and write (it is better if you delete all the lines that you see in it):
<?php echo $this->String; ?>
Now, by typing the address bar of your localhost browser, you can see "hello world." Hope this helps.
source share