How-to articles, tricks, and solutions about YII2
How to count and group by in yii2
In Yii2, you can use the count() and groupBy() methods in the query builder to count and group the results of a query, respectively.
How to get root directory in yii2
In Yii2, you can use the following code to get the root directory: