Channel.php 719 Bytes
<?php

use Action\AbstractAction;
use Index\ChannelModel;
use Plugin\Helpers;

class ChannelController extends AbstractAction
{
    /**
     * 日韩馆
     */
    public function indexAction()
    {
        $title = $this->get('title', '');
        $contentCode = $this->get('content_code', '');
        // 设置网站标题
        $this->setTitle($title);
        $this->setNavHeader($title, true, true);

        $content = ChannelModel::getChannelFloor($contentCode);

        // 渲染模板并输出
        $this->_view->display('index', array(
            'secondChannelPage' => true,
            'maybeLike' => true,
            'content' => $content,
            'pageFooter' => true,
        ));
    }

}