1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-23 20:00:27 +08:00
2020-08-22 19:47:57 +08:00

28 lines
794 B
PHP

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