php – 为什么我的Joomla! 2.5扩展将管理目录中的内容安装到joomla而不是从站点目录? (可下载代码)
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了php – 为什么我的Joomla! 2.5扩展将管理目录中的内容安装到joomla而不是从站点目录? (可下载代码),小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3781字,纯文字阅读大概需要6分钟。
内容图文
![php – 为什么我的Joomla! 2.5扩展将管理目录中的内容安装到joomla而不是从站点目录? (可下载代码)](/upload/InfoBanner/zyjiaocheng/784/c0cd6e89c33445be912c0e8dc72e2d56.jpg)
好的,问题是..我的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不喜欢安装空的文件夹.一旦你完成了这个,它应该安装得很好.
问候.
内容总结
以上是互联网集市为您收集整理的php – 为什么我的Joomla! 2.5扩展将管理目录中的内容安装到joomla而不是从站点目录? (可下载代码)全部内容,希望文章能够帮你解决php – 为什么我的Joomla! 2.5扩展将管理目录中的内容安装到joomla而不是从站点目录? (可下载代码)所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。