Girls.php 1.28 KB
<?php

use Action\WebAction;
use Index\HomeModel;

/**
 * 女生首页
 */
class GirlsController extends WebAction
{

    public function indexAction()
    {
        // 设置客户端浏览器1分钟内不改变 
        $this->setLastModified(mktime(date('H'), date('i'), 0, date('n'), date('j'), date('Y')));
        // 设置浏览器缓存1分钟
        $this->setExpires(60);

        // 设置网站SEO信息
        $this->setTitle('女生|时尚潮流女装,日韩女装,潮牌女装全球购|YOHO!BUY有货  100%正品保证');
        $this->setKeywords('女生服饰,时尚潮流女装,日韩女装,女装正品购物网站,女装全球购');
        $this->setDescription('YOHO!BUY有货官网女生频道汇集了全球女装潮流时尚,提供时尚潮流女装,日版女装,韩版女装,潮牌女装正品全球购。YOHO!BUY有货购物100%正品保证,支持货到付款。');

        // 传递模板数据,渲染模板
        $this->setWebNavHeader(HomeModel::COOKIE_NAME_GIRLS);
        $data = array(
            'boysHomePage' => true,
            'footerTop' => true,
            'girls' => HomeModel::getChannelResource(HomeModel::COOKIE_NAME_GIRLS, HomeModel::CODE_GIRLS_CHANNEL)
        );
        $this->_view->display('index', $data);
    }

}