Book Image

Learning Joomla! 1.5 Extension Development

Book Image

Learning Joomla! 1.5 Extension Development

Overview of this book

Table of Contents (17 chapters)
Learning Joomla! 1.5 Extension Development
Credits
About the Author
About the Reviewer
Preface

Packaging the component


Although preparing modules and plug-ins mainly involves listing the files, components need some extra attention. Components are typically used to manage records in the database, so queries to add the accompanying tables are necessary. We will require links to the component backend. Finally, we may wish to run some additional set-up code to be run just after the installation has completed, or a clean-up script to be run when the component is removed. For the moment, create a folder outside of your Joomla! root called component and create file named restaurants.xml, and load it with the following code:

<?xml version="1.0" encoding="utf-8"?>
<install type="component" version="1.5.0">
<name>Restaurants</name>
<author>Sumptuous Software</author>
<creationDate>August 2008</creationDate>
<copyright>(C) 2008</copyright>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.packtpub.com...