I have a couple of custom functions in /components/Utility/Datetime.php for common date formatting that I need.
It works great in controllers, but I can’t get it to work in the view of a widget…
It comes up with the dreaded:
Call to undefined method DateTime::buildsessiondates()
I have tried putting the "use app\components\Utility\Datetime;" statement in the widget controller and the widget view file, but it makes not difference whatsoever…
help… please… my forehead it getting sore…
Thanks
-John