Bitrix API

ComponentCommand extends Command

FinalYes

Command for generate a simple component with a class and a template.

Example (run from DOCUMENT_ROOT/bitrix folder) (will be created using the path /bitrix/modules/calendar/install/components/bitrix/calendar.open-events.list):

php bitrix.php make:component calendar.open-events.list

Example custom namespace (will be created using the path /local/modules/calendar/install/components/up/calendar.open-events.list):

php bitrix.php make:component up:calendar.open-events.list

Example local (will be created using the path /local/modules/calendar/install/components/bitrix/calendar.open-events.list):

php bitrix.php make:component calendar.open-events.list --local

Example no module (will be created using the path /local/components/up/calendar.open-events.list):

php bitrix.php make:component up:calendar.open-events.list --no-module

Table of Contents


        
On this page
  • Table Of Contents

Search results