Skip to content

Instantly share code, notes, and snippets.

@lyquangthai1993
Last active March 20, 2021 01:24
Show Gist options
  • Save lyquangthai1993/393051c87ec8e629d3e29f6b23f074cf to your computer and use it in GitHub Desktop.
Save lyquangthai1993/393051c87ec8e629d3e29f6b23f074cf to your computer and use it in GitHub Desktop.

Bitrix learning

Chapter 1 - Overview

Module mẫu

Run index.php DoInstall function

Hai bien giao tiep:

$arParams

$arResult

Init default script.js and style.css

Will import default

bitrix overide cac event: ready, ajax, ...

modal kernel -> main: authenticate

module custom chinh là: calendar, task

Chapter 2 - Install module

public function excuteComponent()

initParams()

truyen bien vao arParams

sua code UI trong component_epilog.php

---Tai lieu Mo ta component chưa có chi tiết----

Bitrix có sẵn datamanager.php -> Entity\DataManager

JS library được kế thừa

Biến là 'BX'

Mỗi component có ajax.php

truyền action vào ajax

BX.ajax.runComponentAction

BX.PopupWindowManager.create tạo popup

BX.create là tạo element DOM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment