StatsController.php 555 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace manager\controllers;
  3. use manager\models\News;
  4. use Yii;
  5. class StatsController extends BaseController
  6. {
  7. public function actionIndex()
  8. {
  9. $model = new News();
  10. return $this->render('index', ['model' => $model]);
  11. }
  12. // месяц
  13. public function actionAuthors()
  14. {
  15. $model = new News();
  16. return $this->render('authors', ['model' => $model]);
  17. }
  18. // по дням
  19. public function actionAuthorsd()
  20. {
  21. $model = new News();
  22. return $this->render('authorsd', ['model' => $model]);
  23. }
  24. }