Insert a file "helloworld.php" and a file "index.html" into the folder "administrator/components/com_zoo/elements/helloworld/". The HTML file should be placed in every directory to prevent users from getting an directory listing. If there is no index.html file, some web servers will list the directory contents. The HTML file should only contain the following line:
<html><body bgcolor="#FFFFFF"></body></html>
это ессесно в index.html
ну а дальше и так написано:
The
helloworld.php file should be prepared like this:
<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
// register parent class
JLoader::register('ElementSimple', ZOO_ADMIN_PATH.'/elements/simple/simple.php');
/*
* Class: ElementHelloWorld
* The HelloWorld element class
*/
class ElementHelloWorld extends ElementSimple {
}
?>
ElementHelloWorld is an extension to the ElementSimple class because it already provides some necessary basic functionality.