前端之家收集整理的这篇文章主要介绍了
Joomla 3 Component xml install,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
<?xml version="1.0" encoding="utf-8"?>
<install type="component" version="1.5.0">
<name>Hello</name>
<!-- The following elements are optionaland free of formatting constraints -->
<creationDate>2007-02-22</creationDate>
<author>JohnDoe</author>
<authorEmail>john.doe@example.org</authorEmail>
<authorUrl>http://www.example.org</authorUrl>
<copyright>CopyrightInfo</copyright>
<license>LicenseInfo</license>
<!-- The version string is recorded in the components table -->
<version>3.01</version>
<!-- The description is optional anddefaults to the name -->
<description>Descriptionof the component ...</description>
<!-- Site Main File Copy Section -->
<!-- Note the folder attribute: Thisattribute describes the folder
to copy FROMin the package to install therefore files copied
in thissection are copied from /site/ in the package -->
<files folder="site">
<filename>controller.PHP</filename>
<filename>hello.PHP</filename>
<filename>index.html</filename>
<filename>models/hello.PHP</filename>
<filename>models/index.html</filename>
<filename>views/index.html</filename>
<filename>views/hello/index.html</filename>
<filename>views/hello/view.html.PHP</filename>
<filename>views/hello/tmpl/default.PHP</filename>
<filename>views/hello/tmpl/index.html</filename>
</files>
<install>
<sql>
<file charset="utf8" driver="MysqL">install.sql</file>
</sql>
</install>
<uninstall>
<sql>
<file charset="utf8" driver="MysqL">uninstall.sql</file>
</sql>
</uninstall>
<administration>
<!-- Administration Menu Section -->
<menu>HelloWorld!</menu>
<!-- Administration Main File Copy Section-->
<files folder="admin">
<filename>hello.PHP</filename>
<filename>index.html</filename>
<filename>install.sql</filename>
<filename>uninstall.sql</filename>
</files>
</administration>
</install>
原文链接:https://www.f2er.com/xml/299520.html