Jump to content

css,js and image path inside a module?


Recommended Posts

Hi,

In prestashop modules inside function _displayForm() I want to add my modules css file. For that I have my code like this

    


$this->_html .= '
    <link rel="stylesheet" href="../modules/mymodulename/css/styles.css" />
    <script src="../modules/mymodulename/js/custom.js" type="text/javascript" />
    ';

    It is working fine (as it is absolute path)  but I want to know is there any good and standard method to get all the css, js and image path ?

Edited by prestashop_newuser (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...