OpenCart admin menu link url

前端 未结 4 1935
迷失自我
迷失自我 2021-01-01 05:02

I\'m verry new to OpenCart and I\'m trying to make a module for it.

I want a link in the admin menu to the module I am creating thus I\'ve edited this file:

4条回答
  •  温柔的废话
    2021-01-01 05:27

    Check my answer here: https://stackoverflow.com/a/16418443/598500 - I have answered for the very similar question, anyway the answer is the same as for Your question.

    But to guide You more precisely:

    language file /admin/language//common/header.php add e.g.:

    $_['text_my_module'] = 'My Module Title';
    

    controller file /admin/controller/common/header.php add e.g.:

    $this->data['text_my_module'] = $this->language->get('text_my_module');
    

    and

    $this->data['my_module'] = $this->url->link('module/order_export', 'token=' . $this->session->data['token'], 'SSL');
    

    and finally the template file /admin/view/template/common/header.tpl add:

    
    

    where applicable...

    Is this the correct answer for You?

提交回复
热议问题