Update view.php

The extract function allows you to treat your $data array values as single variables in your views
    $data['username'] = $this->user->username();

The $data['username'] becomes 
            <?php echo $username; ?>

OR

       <?php echo $data['username']; ?>