Index.php 656 Bytes
<?php

use Action\AbstractAction;
use Plugin\Helpers;

/**
 * 频道选择
 */
class IndexController extends AbstractAction
{

    /**
     * 频道选择页
     */
    public function indexAction()
    {
        // 先检查COOKIE是否有访问过, 有则跳转到相应的频道页
        Index\HomeModel::goSwitchChannel();
        
        // 渲染模板
        $this->_view->display('index', array(
            'background' => Index\HomeModel::getBgImage(),
            'channelPage' => true,
            'showDownloadApp'=>true,
            'searchUrl' => Helpers::url('', null, 'search'),
            'pageFooter' => true,
        ));
    }

}