OpenCart seo友好网址问题

时间:2015-07-25 16:30:10

标签: php opencart

我遇到问题,现在想出如何解决它。当我在OC中激活seo友好URL(版本1.5.6.4也使用来自OC网站的免费“Marcus Design”主题)时我得到致命错误:

  

“在非对象”...

上调用成员函数getBanner()

错误的代码:

    NSString *imgName = [NSString stringWithFormat:@"button%iop_on.png",b.tag];
    [b setImage:[UIImage imageNamed:imgName] forState:UIControlStateNormal];
    activeButton = b;
    [self performSelector:@selector(validate)withObject:nil  afterDelay:ti];

也许有人知道如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

我想在这里(我不是程序员所以我很难理解):

$results = $this->model_design_banner->getBanner($this->data['marcusdesign_custom_banner_block1']);

        foreach ($results as $result) {
            if (file_exists(DIR_IMAGE . $result['image'])) {
                $this->data['customBanner1'][] = array(
                    'title' => $result['title'],
                    'link'  => $result['link'],
                    'image' => $this->model_tool_image->resize($result['image'], '248', '215')
                );
            }
        }