How can the ViewHelper be called successfully in the Bootstrap file in PHP?

To successfully call a ViewHelper in the Bootstrap file in PHP, you need to include the necessary files and instantiate the ViewHelper class. This can be achieved by requiring the file containing the ViewHelper class and creating an instance of it in the Bootstrap file.

// Include the file containing the ViewHelper class
require_once 'ViewHelper.php';

// Instantiate the ViewHelper class
$viewHelper = new ViewHelper();