Get skin path in Magento?

后端 未结 6 1408
面向向阳花
面向向阳花 2020-12-14 06:01

I have a few custom PHP functions for my Magento store that I stored in myfunc.php and I need to require it from in a few different .phtml files. How do I do that?

I

6条回答
  •  盖世英雄少女心
    2020-12-14 06:34

    To use it in phtml apply :

    echo $this->getSkinUrl('your_image_folder_under_skin/image_name.png');
    

    To use skin path in cms page :

    title
    

    This part====> {{skin url=images/banner1.jpg}}

    I hope this will help you.

提交回复
热议问题