是我的代码错了,还是opencart有bug

Is my code wrong, or there is a bug in opencart

我为 Opencart 创建了极其简单的模块,只是在管理面板中显示 hello world。这是我的控制器:

<?php

class ControllerExtensionModuleHelloworld extends Controller {

    public function index(){
        $this->load->language('/extension/module/helloworld');
        $this->document->setTitle('Hello World');
        
        $data['heading_title'] = $this->language->get('heading_title');
        $data['helloworld'] = $this->language->get('helloworld');
        
        $data['header'] = $this->load->controller('common/header');
        $data['column_left'] = $this->load->controller('common/column_left');
        $data['footer'] = $this->load->controller('common/footer');
        
        $this->response->setOutput($this->load->view('extension/module/helloworld', $data));
    }
}

这是我的观点:

{{header}}
<div class="container">
    <div class="row>
        <div class="col">
        {{column_left}}
        </div>
        <div class="col">
            <h1>{{heading_title}}</h1>
            <p>{{helloworld}}</p>
        </div>
    </div>
</div>
{{footer}}

问题是 h1 和 p 标签显示在 column-left 下,如下所示: 我将 col classes 更改为 col-sm-4 和 col-sm-8,如下所示:

{{header}}
<div class="container">
    <div class="row>
        <div class="col-sm-3">
        {{column_left}}
        </div>
        <div class="col-sm-8">
            <h1>{{heading_title}}</h1>
            <p>{{helloworld}}</p>
        </div>
    </div>
</div>
{{footer}}

但这没有用,最后我将 col-sm-offset-2 class 添加到 col-sm-8 div,它向左移动了文本,就像它应该是的那样。 有什么想法可能是问题所在吗?

{{ header }} {{column_left}}
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <h1>{{ heading_title }}</h1>
    </div>
  </div>
  <div class="container-fluid">
     <!-- content here -->
  </div>
</div>
{{ footer }}

试试这个,它应该有效。