Почему мой Joomla! 2.5 расширение установка содержимого из каталога администратора на joomla, но не из каталога сайта? (Код загрузки доступен)
Итак, проблема в том.. мой модуль Joomla не устанавливается правильно. Первоначально содержание autobase.xml основан на документах joomla 2.5 для HelloWorld . У меня есть два каталога в com_autobase.zip называется admin и site, по какой-то неизвестной причине файлы с сайта не передаются в Joomla/Components/Com_autobase . Но вместо этого файлы из admin передаются как в Components/com_autobase, так и в Administrator/Components / com_autobase
папка администратора ' com_autobase.zip-архив
(источник: iforce.co.nz )
папка сайта ' com_autobase.zip-архив
(источник: iforce.co.nz )
Автобаза.XML-содержимое от com_autobase' и 'com_autobase/администратора.
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: helloworld.xml 14 2009-11-02 18:35:20Z chdemko $ -->
<extension type="component" version="1.6.0" method="upgrade">
<name>AutoBase</name>
<!-- The following elements are optional and free of formatting conttraints -->
<creationDate>July 2012</creationDate>
<authorUrl>http://www.triotech.co.nz</authorUrl>
<copyright>Copyright Info</copyright>
<license>License Info</license>
<!-- The version string is recorded in the components table -->
<version>0.0.24</version>
<!-- The description is optional and defaults to the name -->
<description>This application has been built using PHP in house at Trio Technology Ltd as a third party
application for the AutoBase Car Yard</description>
<install> <!-- Runs on install -->
<sql>
<file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql</file>
</sql>
</install>
<uninstall> <!-- Runs on uninstall -->
<sql>
<file driver="mysql" charset="utf8">sql/uninstall.mysql.utf8.sql</file>
</sql>
</uninstall>
<update> <!-- Runs on update; New in 1.6 -->
<schemas>
<schemapath type="mysql">sql/updates/mysql</schemapath>
</schemas>
</update>
<!-- Site Main File Copy Section -->
<!-- Note the folder attribute: This attribute describes the folder
to copy FROM in the package to install therefore files copied
in this section are copied from /site/ in the package -->
<files folder="site">
<filename>index.html</filename>
<filename>autobase.php</filename>
<filename>controller.php</filename>
<filename>definitions.php</filename>
<filename>imageController.php</filename>
<folder>views</folder>
<folder>js</folder>
<folder>css</folder>
<folder>helpers</folder>
<folder>models</folder>
<folder>cache</folder>
<folder>images</folder>
</files>
<administration>
<!-- Administration Menu Section -->
<menu>AutoBase!</menu>
<!-- Administration Main File Copy Section -->
<!-- Note the folder attribute: This attribute describes the folder
to copy FROM in the package to install therefore files copied
in this section are copied from /admin/ in the package -->
<files folder="admin">
<!-- Admin Main File Copy Section -->
<filename>index.html</filename>
<filename>autobase.php</filename>
<filename>controller.php</filename>
<!-- SQL files section -->
<folder>sql</folder>
<!-- tables files section -->
<folder>tables</folder>
<!-- models files section -->
<folder>models</folder>
<!-- views files section -->
<folder>views</folder>
<!-- views helpers section -->
<folder>helpers</folder>
</files>
</administration>
</extension>
'com_autobase.zip ' предварительный просмотр установочного пакета
(источник: iforce.co.nz )
Но когда я устанавливаю свой упакованный zip-файл, я получаю эту ошибку.. "Файл не существует: admin / definitions.php " (чего и следовало ожидать, поскольку этот файл находится в директории сайта, а не в директории администратора).
(источник: iforce.co.nz )
Это говорит мне, что он пытается найти файлы/папки, расположенные в каталоге сайта, но с каталогом администратора . Как я могу получить мои файлы расширений с сайта и администратора для передачи в правильное место? на CMS joomla.
папка сайта ' com_autobase.zip-архив (просмотр из окна, как ты видишь определений.php есть).
(источник: iforce.co.nz )
Загрузка программы установки доступна здесь






Ответы - Почему мой Joomla! 2.5 расширение установка содержимого из каталога администратора на joomla, но не из каталога сайта? (Код загрузки доступен) / Why is my Joomla! 2.5 Extension installing contents from the admin directory onto joomla but not from the site directory? (Code download available)
