Trying To Build A Module - XML Setup File Not Found
Posted: Sun Mar 23, 2008 5:58 pm
Hello all!
I'm attempting to teach myself how to build some simple modules. I'm primarily building for J! 1.5. I'm using the book Professional Joomla!, by Dan Rahmel to learn.
I've found the directions exactly on building a simple 'hello world' module. But, for some reason when I try to install this module I get this error:
Now, here is the code I'm using.
File name: mod_helloworld.php
[code]<?php
/**
* @version $Id: mod_hellojoomla.php 5203 2007-03-27 01:42:10Z Danr $
* @package Joomla
* @copyright Copyright (C) 2007 Dan Rahmel. All rights reserved.
* @license GNU/GPL
* This is a simple component to display a hello greeting.
*/
// no direct access
defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );
echo JText::_( ‘Hello World!’);[/code]
Here is my XML File:
File name: mod_helloworld.xml
[code]<?xml version=”1.0” encoding=”utf-8”?>
<install type=”module” version=”1.5.0”>
<name>Hello World</name>
<author>Dan Rahmel</author>
<creationDate>March 2007</creationDate>
<copyright>(C) 2007 Dan Rahmel. All rights reserved.</copyright>
<license>GNU/GPL</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomlajumpstart.org</authorUrl>
<version>1.0.0</version>
<description>Hello World module</description>
<files>
<filename module=”mod_helloworld”>mod_helloworld.php</filename>
</files>
</install>[/code]
I've read this part of the book multiple times, (pages 145+) and even looked at other J! 1.5 modules to see if I was missing something. I don't think that I am. Now, to pack the files into a .zip I use Power Archiver. I'm using the full version so I don't think it has anything to do with my packing utility. I'm applying no passwords/security measures at all.
So, can anyone tell me why my XML file doesn't seem to be detected by J! 1.5. I've tried zipping up just the two files (xml and php) into the archive, I've tried putting it into a sub folder. But, no matter what I can't seem to make things work. Any advice/thoughts would be greatly appreciated.
I'm attempting to teach myself how to build some simple modules. I'm primarily building for J! 1.5. I'm using the book Professional Joomla!, by Dan Rahmel to learn.
I've found the directions exactly on building a simple 'hello world' module. But, for some reason when I try to install this module I get this error:
.Error! Could not find a Joomla! XML setup file in the package.
Now, here is the code I'm using.
File name: mod_helloworld.php
[code]<?php
/**
* @version $Id: mod_hellojoomla.php 5203 2007-03-27 01:42:10Z Danr $
* @package Joomla
* @copyright Copyright (C) 2007 Dan Rahmel. All rights reserved.
* @license GNU/GPL
* This is a simple component to display a hello greeting.
*/
// no direct access
defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );
echo JText::_( ‘Hello World!’);[/code]
Here is my XML File:
File name: mod_helloworld.xml
[code]<?xml version=”1.0” encoding=”utf-8”?>
<install type=”module” version=”1.5.0”>
<name>Hello World</name>
<author>Dan Rahmel</author>
<creationDate>March 2007</creationDate>
<copyright>(C) 2007 Dan Rahmel. All rights reserved.</copyright>
<license>GNU/GPL</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomlajumpstart.org</authorUrl>
<version>1.0.0</version>
<description>Hello World module</description>
<files>
<filename module=”mod_helloworld”>mod_helloworld.php</filename>
</files>
</install>[/code]
I've read this part of the book multiple times, (pages 145+) and even looked at other J! 1.5 modules to see if I was missing something. I don't think that I am. Now, to pack the files into a .zip I use Power Archiver. I'm using the full version so I don't think it has anything to do with my packing utility. I'm applying no passwords/security measures at all.
So, can anyone tell me why my XML file doesn't seem to be detected by J! 1.5. I've tried zipping up just the two files (xml and php) into the archive, I've tried putting it into a sub folder. But, no matter what I can't seem to make things work. Any advice/thoughts would be greatly appreciated.