在OC3中(树枝),我无法将自定义模块的位置保存在类别的布局中:当我按保存布局然后重新打开类别布局时,保存的模块位置消失了。该模块的admin部分起作用(视图起作用)。
我什至不知道该怎么做才能解决此问题,也没有在互联网上找到有关我在这里可以做什么的任何信息。我只有目录控制器语言中的一项,如果确实有区别,我会在相应视图的树枝中输出。
这是我模块的目录控制器:
<?php
class ControllerExtensionModuleProductFilter extends Controller {
public function index() {
$this->load->language('extension/module/product_filter');
if ($setting && $setting['status']) {
$refresh_products = false;
$data = array();
if (isset($this->session->data['refresh_products']) &&
$this->session->data['refresh_products']) {
$refresh_products = true;
}
if (!isset($this->session->data['refresh_products'])) {
$refresh_products = true;
}
if ($refresh_products) {
$data['start_product_filter_ajax_session'] = $this->url->link('extension/module/product_filter/startProductFilterAjaxSession');
return $this->load->view('extension/module/product_filter', $data);
}
}
}
public function startProductFilterAjaxSession() { //ajax
$this->session->data['refresh_products'] = $this->request->post['products_refresh_request']; // =? true
if (isset ($this->session->data['refresh_products']) && ) {
if ($this->request->post['products_refresh_request'] = $this->session->data['refresh_products']) {
$this->session->data['refresh_products'] = $this->request->get['products_refresh_request'] ;
}
} else {
$this->session->data['refresh_products'] = $this->request->post['products_refresh_request'];
}
$data = array();
$data['refresh_needed'] = true;
$this->response->setOutput($this->load->view('extension/module/product_filter_session', $data));
}
}
我希望模块目录部分的视图树枝在“ column_left”中显示内容(出于测试目的,只说一个随机短语)。现在,我什至无法保存模块的布局位置。