I do not understand what the problem is. There is a snippet in which I invoke my class. with direct access, everything is ok (/cart/save.html) And when I pull this page through ajax (POST), he says that he cannot find the class that I call in that snippet
Fatal error: Class 'lib\cabinet\User' not found in /var/www/******/core/cache/includes/elements/modsnippet/23.include.cache.php on line 5
The problem is that with a POST request, for some reason, classes are not loaded, and if you send a GET request, then everything is ok.