0

我有 mu install.xml 文件:

    <media destination="com_mycomp/images" folder="media">
        <filename>images/file1.png</filename>
        <filename>images/file2.gif</filename>
    </media>

并在安装过程中创建文件夹但不复制文件?为什么?

我的组件文件夹结构:

com_mycomp
|
install.xml
|
+--- site
|    |
|    + (...)
|
+--- admin
|    |
|    + (...)
|
+--- media
     |
     + images
       |
       + file1.png
       |
       + file2.gif

如何在安装时将文件放入媒体文件夹?

4

1 回答 1

3
<media destination="com_mycomp" folder="media"> 
     <folder>images</folder>
</media>

使用此示例代码,它将上传图像文件夹中的所有文件

于 2011-12-20T09:04:49.263 回答