V
V
vladimirir2021-03-11 16:55:41
1C-Bitrix
vladimirir, 2021-03-11 16:55:41

Why use the class.php file in a component in 1C-Bitrix?

From the documentation, I didn’t quite understand what is the point of using this file - just replace the actions that we do in component.php with class methods that we define in class.php&

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2021-03-11
@udjin123

There is a lot of sense, at least some kind of separation and design of the code, from the practical point of view, the same new ajax in components only through class. And in general the use of component.php is deprecated, use class.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question