Homepage of www.easymagazine.net | Wem site map of www.easymagazine.net | Email the author of www.easymagazine.net

 

Plug-in general design

All the plug-ins in EasyMagazine share a common design.
The design is very easy and accessible in order to allow developpers to create their plug-ins without a long documentation to read.

Plug-ins administration

You can download the plug-in link manager as a design example. It is installed by default with EasyMagazine, it is complete of access to the database with administration panel, integrated in EasyMagazine administration.
It is a basic but complete example.

Every plug-in in EasyMagazine is composed by a set of files:

  • info.php
  • File executed by the system when the administrator clicks the open book. It is useful to put some information about the plug-in, the right owner and the licence.
  • admin.php
  • File executed by the system when the administrator clicks the admin button. It is useful to create the plug-in administration panel.
  • activate.php
  • File executed by the system when the administrator clicks the green flag. It is useful for example to create a table in the database after the plug-in installation.
  • deactivate.php
  • File executed by the system when the administrator clicks the red flag. It is useful for every action has to be done in order to deactivate the plug-in.
  • index.php
  • File included by the system when the plug-in is activated. It is the main file, the one that is executed by the system to provide the feature the plug-in was created for.

Don't think you are restricted to use anly 5 files to create your plug-in!
You are free to create all file you need to make it, you are free to include and to design as you prefer.

Have fun!

 


Copyright © 2009, 2010, 2011 Fabio Mattei, designed by zuudesign.sk