I want to display Current user name in html block as well as on label . following code is not
helping me. there is another same discussion but that is locked. any help is highly appreciated.
<?php
require('......../config.php'); // depends on your 'depth'. See other files in the same place
require_login(); // almost all pages require the user to be logged in
echo $USER->username;