Index.php
698 Bytes
<?php
use Action\AbstractAction;
use LibModels\Wap\Home\IndexData;
use Plugin\Helpers;
/**
* 频道选择
*/
class IndexController extends AbstractAction
{
/**
* 启动首页频道选择
*/
public function indexAction()
{
$data = array();
// 背景图获取
$banner = IndexData::getBannerStart();
if ($banner) {
$data['background'] = Helpers::getImageUrl($banner, 640, 800, 1);
}
// 设置底部导航信息
$this->setNavFooter();
// 生成HTML (index.html)
$this->_view->html('index');
// 渲染模板
$this->_view->display('index', $data);
}
}