Download the PHP package akiyatkin/layer-conf without Composer
On this page you can find all versions of the php package akiyatkin/layer-conf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package layer-conf
Передача конфига в шаблон
Данные из конфига .infra.json расширений можно передать в шаблон
Установка через composer
Использование
У слоя нужно добавить свойство conf c именем расширения, чей конфиг нужно загрузить. В шаблоне conf уже бужет тем самым конфигом. conf наследуется от родительского слоя ко всем вложенным. В шаблон попадают только те свойства которые перечислены в свойстве .
Например
Есть расширение testext с файлом .infra.json
У слоя указано
В шаблоне если вставить
Результат
All versions of layer-conf with dependencies
PHP Build Version
Package Version
Requires
infrajs/event Version
~1
infrajs/config Version ~1
infrajs/template Version ~1
infrajs/controller Version ~1
infrajs/config Version ~1
infrajs/template Version ~1
infrajs/controller Version ~1
The package akiyatkin/layer-conf contains the following files
Loading the files please wait ....