D
D
dev4002016-06-20 10:00:43
PHP
dev400, 2016-06-20 10:00:43

Code quality in Bitrix components?

Those who write and edit components, please tell me, is it difficult? There is an understanding in php oop, and in pure SQL. Is it difficult to write components, work with a database, build queries, etc.? There is too much tediousness in the official dock, in my opinion. Of course, I read it, but I want to read some other reliable source, in which it will be written more compactly about development on Bitrix. A rather large online store is to be edited.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
Maxim Kudryavtsev, 2016-06-20
@dev400

A rather large online store is to be edited

Have you already bought a box of vodka?

E
Eugene, 2016-06-20
@Eugeny1987

And you look ... and be horrified

6
65536, 2016-06-20
@65536

as compact as possible: development on Bitrix is ​​pi-c

C
Constantine, 2016-06-30
@psycho-coder

https://habrahabr.ru/post/282333/ briefly and to the point
Not long ago I ran into two projects on Bitrix. Either the frame itself makes you shit-code, or the progers are not of a distant mind. Dealt with mothers. And I support everything in the post. Don't go there unless absolutely necessary.

I
Ivan Nikolaevich, 2016-07-02
@north_leshiy

Here is an example of a simple component

<?
class SaleRecomendedProducts extend \Bitrix\iblock\Component\ElementList {

}

Plus, take a template from any suitable heir. Methods that you need - override. If you work through ORM with your tables / entities, then write your own from scratch.
It is now common practice to leave more logic in modules, and make components thin enough.
With complex components it’s a little more complicated, it’s vaguely described in the docks, I figured it out by digging the complex code of the catalog + docks component.
In general, the docks are sad. API D7 was released a month ago, but it is almost empty at the moment.
https://dev.1c-bitrix.ru/api_d7/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question