Inclusion of .css and .js in extension

  • In an extension I am writing, I need to include a .js and a .css file, which i would like to place somewhere in the package directory. How do I do that as I seem not to be able to have a .css or .js in the packages directory that I can call using a link like:


    <script src="https://mydomain/packages/mercator/gallery/js/myjava.min.js"></script>

  • Hi Mercator

    For Css and js:

    PHP: Template
    1. <?= $view->style('example-css' , 'themeone:assets/css/example.css') ?>
    2. <?= $view->script('example-js' , 'themeone:assets/js/example.js' , 'jquery') ?>

    Hello guys, my name is Yunus and I'm a backend developer. If you have a problem just drop me a message, but unfortinately I can't understand everything as I'm using google translator and many things gets lost in translation. So there is a language barrier and I'm sorry about this. Be patient and we will find a solution for sure. Thank you in advance.

    Edited 2 times, last by ().