public function __construct() { // Initialize the deprecated TemplateHelper class to ensure backward compatibility TemplateHelper::init($this); }