SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 182 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

For
example, you would have to name the file myextension.php if you were to use the
XML displayed above. If you do not include this file, you will not be able to install
the plugin.
Now create a new archive, it can be gz, .tar, .tar.gz, or zip, and add the XML
manifest file and PHP file to it. If you install the archive, you should get a blank
plugin, which you can begin to develop.
Plugins are not stored in separate folders. This is because generally plugins only
consist of two files: the XML manifest file and the root plugin file. Installed plugins
are located in the root plugins folder in a subfolder named after the plugin group.
Our example would be located in the folder plugins/foobar.
In order to use your plugin, you will need to use the Plugin Manager to publish it.
Events
As we have already mentioned, plugins use the Observer pattern to keep an eye
on events and handle them. The Observer pattern is a design pattern in a logical
function, which is common to programming. This particular pattern allows listeners
to attach to a subject.


Pages:
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194