Size: a a a

2020 July 31

T

TradersVE in Yii Framework 3
I am testing the configuration it must be flexible to build any application, I am doing app-advanced.
источник

СП

Сергей Предводителев... in Yii Framework 3
Алексей R
Отправь в дбал свой драйвер и если он получит логгер, то все ок
источник
2020 August 01

В

Виктор in Yii Framework 3
TradersVE
I am testing the configuration it must be flexible to build any application, I am doing app-advanced.
I thought advanced template is in the past as it is an antipattern
источник

T

TradersVE in Yii Framework 3
Виктор
I thought advanced template is in the past as it is an antipattern
several have asked how to configure an app with different domains for backend and frontend, and I think it is a good way to implement it, with separate containers.
источник

NO

Nex Otaku in Yii Framework 3
it is a bad way... no need to duplicate same files, just make the routes with few lines of code)
источник

T

TradersVE in Yii Framework 3
Nex Otaku
it is a bad way... no need to duplicate same files, just make the routes with few lines of code)
There are no duplicate files, you can use different themes for each domain that is an advantage too, in addition to having services available only for each implementation.
источник

Д

Дмитрий in Yii Framework 3
TradersVE
@xepozz as change web.php for backend-web.php for example:

$params = (array) require DIR. '/params.php';  ===> $ params = (array) require DIR. '/backend-params.php';

Its posible ?
Read my hack. Currently it's available to use any item declared  above in composer.json as $someitem
источник

Д

Дмитрий in Yii Framework 3
In config file, used composer-config-plugin
источник

T

TradersVE in Yii Framework 3
Дмитрий
In config file, used composer-config-plugin
Ok, but I think the plugin should allow to inject the parameters to the configurations, and not have fixed params
источник

Д

Дмитрий in Yii Framework 3
TradersVE
Ok, but I think the plugin should allow to inject the parameters to the configurations, and not have fixed params
Create 'params_backend' in composer, and can use it in config as $params_backend in each other config located above this one
источник

T

TradersVE in Yii Framework 3
Дмитрий
Create 'params_backend' in composer, and can use it in config as $params_backend in each other config located above this one
Yes, but web, providers, config add params.php for default
источник

Д

Дмитрий in Yii Framework 3
Я не понимаю как ещё объяснить.
источник

Д

Дмитрий in Yii Framework 3
TradersVE
Yes, but web, providers, config add params.php for default
You can declare 'config1' in composer. And can use it IN php as $config1
источник

Д

Дмитрий in Yii Framework 3
In later on php configs
источник

T

TradersVE in Yii Framework 3
I understand the hack, I can also pass the parameters through the container I already have it working, but I think that the composer plugin should be able to modify the default configuration.
источник

Д

Дмитрий in Yii Framework 3
TradersVE
I understand the hack, I can also pass the parameters through the container I already have it working, but I think that the composer plugin should be able to modify the default configuration.
How ?
источник

T

TradersVE in Yii Framework 3
?
источник

Д

Дмитрий in Yii Framework 3
TradersVE
?
Show example. I'm totally lost
источник

T

TradersVE in Yii Framework 3
Дмитрий
Show example. I'm totally lost
Ok tomorrow upload repositorie
источник

Д

Дмитрий in Yii Framework 3
Ok.
источник