yii2 get value from params

To get a value from the params array in Yii or Yii2, you can use the Yii::$app->params syntax. Here's an example:

$value = Yii::$app->params['paramName'];

In this example, paramName is the name of the parameter you want to retrieve. By accessing the params array using the Yii::$app->params syntax, you can retrieve the value associated with the specified parameter name.

That's it! You can now retrieve values from the params array in Yii and Yii2 using the Yii::$app->params syntax.