1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-21 19:22:45 +08:00
2020-05-08 21:31:23 +08:00

28 lines
792 B
PHP

<?php
namespace App\Http\Web\Controllers;
use App\Http\Web\Services\Index as IndexService;
class IndexController extends Controller
{
/**
* @Get("/", name="web.index")
*/
public function indexAction()
{
$this->siteSeo->setKeywords($this->siteSettings['keywords']);
$this->siteSeo->setDescription($this->siteSettings['description']);
$indexService = new IndexService();
$this->view->setVar('slides', $indexService->getSlides());
$this->view->setVar('lives', $indexService->getLives());
$this->view->setVar('new_courses', $indexService->getNewCourses());
$this->view->setVar('free_courses', $indexService->getFreeCourses());
$this->view->setVar('vip_courses', $indexService->getVipCourses());
}
}