SubscribeController.php 748 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /* *****************************************************************
  3. * @Author: wushuiyong
  4. * @Created Time : 一 7/27 22:23:54 2015
  5. *
  6. * @File Name: SubscribeController.php
  7. * @Description:
  8. * *****************************************************************/
  9. namespace app\controllers;
  10. use app\components\Controller;
  11. use app\components\LoggerDetail;
  12. use app\models\LogDetail;
  13. class SubscribeController extends Controller {
  14. public function actionIndex() {
  15. $logDetails = LogDetail::find()->asArray()->all();
  16. foreach ($logDetails as $logDetail) {
  17. $detail = LoggerDetail::formatChildDetail($logDetail);
  18. }
  19. return $this->render('index', [
  20. 'detail' => $detail,
  21. ]);
  22. }
  23. }