This tool is used to automatically generate (scaffold) a complete set of PHP classes needed for a basic Vivvo plug-in. Tool offers a number of options to control what features will be available to plug-in, and how the generated code will look like. The purpose of the tool is to save you time when creating a new plug-in, and to give you a solid code base you can start working with. However, please note that generated code doesn’t do anything itself, it’s just a programming frame, and you will have to modify and expand it with your own code to make the plug-in do something meaningful.
To start using the tool, point your browser to folder where you’ve uploaded files. In our example folder was named “vpg”, so you would go to URL: http://www.example.com/vpg/
You will be presented with the following form:
Description of form fields:
Once you are happy with selected options click on Continue button to proceed to step 2:
On this form you’ve got option to define modules, URL handlers, action handlers and custom fields (for Articles DB table), that you want to be supported by plug-in:
* Register modules: The name of the module (e.g. box_example). This name will used for naming classes and appropriate scripts according to the general naming rules used in Vivvo, and it’s value has to be a valid PHP function name.
For each group you can define unlimited number of values by clicking on “Add more” after entering each value, and if you wish to remove one of them, just click on red X next to the value.
Once you’ve entered all required options, click ”Generate plugin” button, and you will be prompted to download the code generated for you.
Generated classes provide you with fully structured plug-in, with all basic scripts and classes that you will need. It is the base that you will need to expand with your own code in order to give the plug-in a required functionality. Even if you never wrote a Vivvo plug-in before, we hope that by using this tool, and exploring existing Vivvo plug-ins and how-to’s for reference, you will be able to start writing your own Vivvo code fast and easy.
We also recommend reading more on developing Vivvo Modules: