これは私のインストール ディレクトリ (zip) の内容です
site
controllers
language
models
views
ciie.php
controller.php
index.html
admin
sql
models
language
helpers
controllers
tables
views
ciie.php
controller.php
ciie.xml
index.html
ciie.xml
media
index.html
そして、これが私のマニフェストxmlファイルです
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="2.5.0" method="upgrade">
<name>CIIE</name>
<creationDate></creationDate>
<author></author>
<authorEmail></authorEmail>
<authorUrl></authorUrl>
<copyright></copyright>
<license></license>
<version></version>
<description></description>
<install> <!-- Runs on install -->
<sql>
<file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql</file>
</sql>
</install>
<files folder="site">
<folder>controllers</folder>
<folder>language</folder>
<folder>models</folder>
<folder>views</folder>
<filename>ciie.php</filename>
<filename>controller.php</filename>
<filename>index.html</filename>
</files>
<media destination="com_ciie" folder="media">
<filename>index.html</filename>
<folder>images</folder>
</media>
<administration>
<menu img="../media/com_ciie/images/tux-16x16.png">CIIE</menu>
<files folder="admin">
<folder>sql</folder>
<folder>models</folder>
<folder>language</folder>
<folder>helpers</folder>
<folder>controllers</folder>
<folder>tables</folder>
<folder>views</folder>
<filename>ciie.php</filename>
<filename>controller.php</filename>
<filename>index.html</filename>
</files>
</administration>
</extension>
問題は、一部のフォルダをインストールした後、コンポーネントディレクトリに正しくコピーされないことです インストール後に得たものは次のとおりです
Front end (site)
com_ciie
views
ciie.php
controller.php
index.html
Backend (Administrator)
ciie.xml
index.html
ciie.php
次に、マニフェスト xml ファイルを変更して、xml に問題があるかどうかを確認しました。すべてのフォルダータグを削除しました
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="2.5.0" method="upgrade">
<name>CIIE</name>
<creationDate></creationDate>
<author></author>
<authorEmail></authorEmail>
<authorUrl></authorUrl>
<copyright></copyright>
<license></license>
<version></version>
<description></description>
<install> <!-- Runs on install -->
<sql>
<file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql</file>
</sql>
</install>
<files folder="site">
<filename>ciie.php</filename>
<filename>controller.php</filename>
<filename>index.html</filename>
</files>
<media destination="com_ciie" folder="media">
<filename>index.html</filename>
<folder>images</folder>
</media>
<administration>
<menu img="../media/com_ciie/images/tux-16x16.png">CIIE</menu>
<files folder="admin">
<filename>ciie.php</filename>
<filename>controller.php</filename>
<filename>index.html</filename>
</files>
</administration>
</extension>
しかし、同じフォルダー構造がコンポーネントディレクトリで繰り返されます インストール後に得たものは次のとおりです
Front end (site)
com_ciie
views
ciie.php
controller.php
index.html
Backend (Administrator)
ciie.xml
index.html
ciie.php
ご覧のとおり、2 番目に主要なファイルにはフォルダーが含まれていません (すべてのフォルダー タグが削除されています) が、「views」フォルダーがフロント エンドにコピーされています。私には、マニフェスト ファイルが「壊れた」インストールに影響を与えないように思えます。何か見逃しましたか?