__construct() __construct(\Template $template) : mixed Initializes the view and displays an error message if needed. Parameters \Template $template Template object to manipulate html content. Returns mixed