Detail.php 1.64 KB
<?php
use Action\AbstractAction;

/**
 * 商品详情的控制器
 */
class DetailController extends AbstractAction
{
    /**
     * 商品详情
     * 
     * @param  
     */
    public function indexAction()
    {     
        $data = array (
            'goodDetail' => true,
            'pageHeader' => array (
                'navBack' => 'sss ',
                'navHome' => 'sss ',
                'navTitle' => '商品详情'
            ),
            'bannerTop' => array (
                'list' => array (
                    array (
                        'url' => '',
                        'img' => 'http://img10.static.yhbimg.com/goodsimg/2015/10/12/04/0100ba0d8512c3af064873f5a1e3805e45.jpg?imageMogr2/thumbnail/450x600/extent/450x600/background/d2hpdGU=/position/center/quality/90'
                    ),
                    array (
                        'url' => '',
                        'img' => 'http://img11.static.yhbimg.com/goodsimg/2015/10/12/03/01bf4cf4444035a1930d33a9d0f8bff4fa.jpg?imageMogr2/thumbnail/450x600/extent/450x600/background/d2hpdGU=/position/center/quality/90'
                    ),
                    array (
                        'url' => '',
                        'img' => 'http://img11.static.yhbimg.com/goodsimg/2015/10/12/03/01d7ef2f624eeea15e80bb374607aea317.jpg?imageMogr2/thumbnail/450x600/extent/450x600/background/d2hpdGU=/position/center/quality/90'
                    )
                )
            )
        );
   
        $this->_view->assign('title', '商品详情');
        //$this->_view->display('brand', compact('brands'));

        // 渲染模板
        $this->_view->display('index', $data);
    }
}