mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-20 19:07:03 +08:00
38 lines
721 B
PHP
38 lines
721 B
PHP
<?php
|
|
|
|
namespace App\Http\Admin\Controllers;
|
|
|
|
use App\Http\Admin\Services\Index as IndexService;
|
|
use Phalcon\Mvc\View;
|
|
|
|
/**
|
|
* @RoutePrefix("/admin")
|
|
*/
|
|
class IndexController extends Controller
|
|
{
|
|
|
|
/**
|
|
* @Get("/", name="admin.index")
|
|
*/
|
|
public function indexAction()
|
|
{
|
|
$indexService = new IndexService();
|
|
|
|
$topMenus = $indexService->getTopMenus();
|
|
$leftMenus = $indexService->getLeftMenus();
|
|
|
|
$this->view->setRenderLevel(View::LEVEL_ACTION_VIEW);
|
|
$this->view->setVar('top_menus', $topMenus);
|
|
$this->view->setVar('left_menus', $leftMenus);
|
|
}
|
|
|
|
/**
|
|
* @Get("/main", name="admin.main")
|
|
*/
|
|
public function mainAction()
|
|
{
|
|
|
|
}
|
|
|
|
}
|