domatskiy / bitrix-js-plugins
use angular bitrix
v1.0.2
2018-03-16 19:04 UTC
Requires
- php: >=5.6.4
Requires (Dev)
- phpunit/phpunit: ^5.4.0
This package is auto-updated.
Last update: 2025-03-18 05:14:32 UTC
README
install
composer require domatskiy/bitrix-js-plugins
use
in php_interface/init.php
if(class_exists('\Domatskiy\BitrixJSPlugins')) { $CBitrixJSPlugins = \Domatskiy\BitrixJSPlugins::getInstance(); #$CBitrixJSPlugins->setUseOldApi(true); // for old api $CBitrixJSPlugins->add(<plugin_name>, array(), // js path array array(), // css path array ); }
in component_epilog.php
if(class_exists('\Domatskiy\BitrixJSPlugins')) { $CBitrixJSPlugins = \Domatskiy\BitrixJSPlugins::getInstance(); $CBitrixJSPlugins->init(<plugin_name>); }