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:

    Quote

    <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. I'm back-end developer. İf you have a problem. You could tell me but my speaking too bad. So I not understand you. I'm sorry about this. I using google translate but even so it isn't enough. So that you should be patience. Thank you

    Edited 2 times, last by yns.wtf ().