求助品牌商品列表页,品牌信息调用信息

品牌街单击品牌名称后,打算在列表页调用品牌的logo、banner、desc信息。


1.BrandController.class.php怎么修改呢

    /**
    * 品牌商品列表
    */
    public function goods_list() {
    $this->parameter();
    $brand_id = I('request.id');
    $brand_info = model('BrandBase')->get_brand_info($brand_id);
    if (empty($brand_info)) {
    $this->redirect(url('index'));
    exit();
    }
    $brand_desc = I('brand_desc');
    $cat = I('request.cat') ? intval(I('request.cat')) : 0;
    $this->assign('page', $this->page);
    $this->assign('size', $this->size);
    $this->assign('sort', $this->sort);
    $this->assign('order', $this->order);
    $this->assign('brand_id', $brand_id);
    $this->assign('brand_desc', $brand_desc);
    $this->assign('brand_logo', $brand_logo);
    $this->assign('brand_banner', $brand_banner);
    $this->assign('cat', $cat);





2.goods_list_brand.lbi调用

    {$brand_logo}
    {$brand_banner}
    {$brand_desc}


 
已邀请:

要回复问题请先登录注册