S
S
Sergey Beloventsev2017-05-22 12:02:33
Yii
Sergey Beloventsev, 2017-05-22 12:02:33

How to use config.php settings in extension?

I'm trying to create my extension. There was a need to set individual settings for the extension from backend, common, frontend. How can this be done?

'modules' => [
   'my_extensions'=>[
      'class' =>  'sirgalas\myExtensions\Module',], 
    ],
]

in common, backend, frontend configs? Or is this not possible at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-05-22
@Sergalas

https://github.com/yiisoft/yii2/blob/master/docs/g...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question