XML file is the main config file. In here we can see very simple XML file.
ple download this
http://computerlanguage.inetlanka.com/sample/com_lanka1.zip
and install it.
ok let see what is on.....
XML - install.xml
XML file is very important because it consist with all images / files/ and settings. so u have to clear this first. Download com_lanka1.zip and extract it. their u can see install.xml file and some of code.
ok Now we can go line by line on 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>iNetlanka</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>index.html</filename>
</files>
</administration>
</install>
admin - this is folder which include all admin relevant files
site - this is folder which include all front end user relevant files
now ple go following link or use 'com_lanka' MENU under component category
http://YOUR WEB SITE NAME OR LOCAL HOST /administrator/index.php?option=com_lanka1
now u can see following img

Ohhh error!!!! why is this? do not worry we use trail and error fixing method ....
connect with next post
wAp
No comments:
Post a Comment