How can i create my config in Yii2? and return in it for example $new = 'new' and then use it in other class? My structure
Module
MyModule
config (directory)
config.php (here must be $new = 'new')
function (directory)
MyFunc ( here i need use variable from config)
Thanks for help! code from
<?php
namespace module\MyModule\function;
class MyFunc
{
private static function func()
{
here i need to get $new from config
}
}