S
S
sgrinko2018-05-15 02:09:18
css
sgrinko, 2018-05-15 02:09:18

How to include the styles of the OpenCart module?

Good time of the day to everyone I
lifted the module from the content to the header
and brought it out. but for some reason the styles does not connect
the styles connection inside the catalog\controller\module\new_category_menu.php

<?php
class ControllerModuleNewCategoryMenu extends Controller {
  public function index() {
    $this->load->language('module/new_category_menu');
    
    
    $this->document->addStyle('catalog/view/javascript/newcategory/new_category_menu.css');
    $data['heading_title'] = $this->language->get('heading_title');

    if (isset($this->request->get['path'])) {
      $parts = explode('_', (string)$this->request->get['path']);
    } else {
      $parts = array();
    }

in any other position. except for the hat. the module connects styles
Why such side happened?
can anyone advise?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web-mechanic, 2018-05-16
@amfetamine

1) Styles must be included before rendering the header, make sure to do so.
2) Check if paths are correct
3) File cache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question