Snippets tagged “yii2”
2 snippets use this tag.
- How to count and group by in yii2PHP
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 yii2PHP
In Yii2, you can use the following code to get the root directory: