Sunday, May 23, 2010

1 simple example joomla component

Already we have discussed about "How to make a Joomla component".

For that follows 5 stages as below

Download all above step as once component , "simple example joomla component "


There is simple variation on the "install.xml". Added new 4 line to it as below

lanka1.php
index.html
controller.php
views/lanka1s/view.html.php
views/lanka1s/tmpl/default.php


New install.xml file

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install SYSTEM "http://dev.joomla.org/xml/1.5/component-install.dtd">
<install type="component" version="1.5.0">
<name>lanka1</name>
<!-- The following elements are optional and free of formatting conttraints -->
<creationDate>2009/10/24 </creationDate>
<author>wapnishantha</author>
<authorEmail>info@inetlanka.com</authorEmail>
<authorUrl>http://www.inetlanka.com</authorUrl>
<copyright>com_lanka1 2009</copyright>
<license>GNU/GPL</license>
<!-- The version string is recorded in the components table -->
<version>1.0.0</version>
<!-- The description is optional and defaults to the name -->
<description>
<![CDATA[
This component is a Flight System. <br />
]]>
</description>
<!-- Site Main File Copy Section -->
<files folder="site">

<filename>index.html</filename>

</files>


<administration>
<!-- Administration Menu Section -->
<menu>com_lanka</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">
<!-- Site Main File Copy Section -->

<filename>lanka1.html</filename>
<filename>index.html</filename>
<filename>controller.html</filename>
<filename>views/lanka1s/view.html.php</filename>
<filename>views/lanka1s/tmpl/default.php</filename>



</files>

</administration>

</install>




wAp

No comments:

Post a Comment