php – 为什么我的Joomla! 2.5扩展将管理目录中的内容安装到joo
好的,问题是..我的joomla模块安装不正确. autobase.xml的orginial内容基于
joomla 2.5 docs for HelloWorld.我在com_autobase.zip中有两个名为admin和site的目录.由于某些未知原因,来自站点的文件未被转移到Joomla / Components / Com_autobase中.但是来自admin的文件正在被转移到Components / com_autobase和Administrator / Components / com_autobase中
管理文件夹’com_autobase.zip’ admin folder installer http://iforce.co.nz/i/bf3m5asl.ofm.png 站点文件夹’com_autobase.zip’ site folder installer http://iforce.co.nz/i/dfn4xw5o.0cv.png 来自’com_autobase’和’com_autobase / admin’的autobase.xml内容. <?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’INSTALLER包预览 package http://iforce.co.nz/i/zcga3oyx.cs2.png 但是,当我安装我的打包的zip文件时,我收到此错误..“文件不存在:admin / definitions.php”(这应该是预期的,因为此文件位于站点组件而不是admin目录中). joomla error http://iforce.co.nz/i/htlotipf.mgk.png 这告诉我它试图找到位于站点目录中的文件/文件夹,但是使用admin目录.如何将网站和管理员的扩展文件转移到正确的位置?在joomla CMS上. 站点文件夹’com_autobase.zip'(从windows预览,如你所见,definitions.php就在那里). site windows installer http://iforce.co.nz/i/j5coups5.aqo.png 可以在here下载安装程序 解决方法
好的找到了问题的解决方案.在admin文件夹中,删除autobase.xml文件,并将index.html文件添加到缓存文件夹.我认为Joomla不喜欢安装空的文件夹.一旦你完成了这个,它应该安装得很好.
问候. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |