joomla/com_wk1/wk1.xml
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.6.0" method="upgrade">
<name>wk1</name>
<!-- The following elements are optional and free of formatting constraints -->
<creationDate>April 2017</creationDate>
<author>Walter Keller</author>
<authorEmail>wa@wlkl.ch</authorEmail>
<authorUrl>http://www.wlkl.ch</authorUrl>
<copyright>Copyright Info</copyright>
<license>License Info</license>
<!-- The version string is recorded in the components table -->
<version>0.0.7</version>
<!-- The description is optional and defaults to the name -->
<description>my first joomla component ...</description>
<update> <!-- Runs on update; New since J2.5 -->
<!-- <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>wk1.php</filename>
<filename>controller.php</filename>
<filename>router.php</filename>
<folder>views</folder>
</files>
<administration>
<!-- Administration Menu Section -->
<menu link='index.php?option=com_com'>component wk1</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>wk1.php</filename>
<!-- <filename>controller.php</filename>
--> <!-- SQL files section -->
<!-- <folder>sql</folder>
<folder>controllers</folder>
<folder>models</folder>
<folder>views</folder>
--> </files>
</administration>
<config>
<fields name="params">
<fieldset name="basic">
<field
name="wk1fun"
type="text"
default="0"
label="MOD_LOGIN_FIELD_USESECURE_LABEL"
description="MOD_LOGIN_FIELD_USESECURE_DESC">
</field>
</fieldset>
<fieldset
name="advanced">
<field
name="layout"
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC" />
<field
name="moduleclass_sfx"
type="textarea" rows="3"
label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC" />
</fieldset>
</fields>
</config>
</extension>