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

/**
 * 商品详情的控制器
 */
class DetailController extends AbstractAction
{
    /**
     * 商品详情
     * 
     * @param  
     */
    public function indexAction()
    {     
        $data = array (
            'goodDetail' => true,
            'bannerTop' => array (
                'list' => array (
                        array (
                            'url' => '',
                            'img' => 'http://img10.static.yhbimg.com/adpic/2015/10/15/10/01c161398d3baec2868abe85e26ba1a71d.jpg?imageMogr2/thumbnail/640x300/extent/640x300/background/d2hpdGU=/position/center/quality/90'
                        ),
                        array (
                            'url' => '',
                            'img' => 'http://img13.static.yhbimg.com/adpic/2015/10/15/10/027c45cdc03e23c367ec0ff3d29b7c3f79.jpg?imageMogr2/thumbnail/640x300/extent/640x300/background/d2hpdGU=/position/center/quality/90'
                        ),
                        array (
                            'url' => '',
                            'img' => 'http://img13.static.yhbimg.com/adpic/2015/10/15/10/022e2ac6daa33fc3cb8a0f04025a35994f.jpg?imageMogr2/thumbnail/640x300/extent/640x300/background/d2hpdGU=/position/center/quality/90'
                        )
                )
            )
        );
   
        $this->_view->assign('title', '商品详情');
        //$this->_view->display('brand', compact('brands'));

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