Actions
PluginStructure » History » Revision 2
« Previous |
Revision 2/6
(diff)
| Next »
Vasily Bezruchkin, September 19, 2012 23:47
Plugin Structure¶
Plugin should have index.php for both admin panel and frontend.
There is a way to import mysql dump files during a plugin or package installation.
<install> <import type="sql">USA.sql</import> </install>
The appropriate SQL dump file should be placed into includes/dumps/ folder.
Implement the confirmation when importing dumps.
There should be an ability to specify each import as optional.
Example:
<import type="sql" optional="1" description="Canadian ZIP codes">my-dump.sql</import> or <import type="sql" interact="confirmation/forced" description="Canadian ZIP codes">my-dump.sql</import>
In this case the script has to ask the user "Would you like to install Canadian ZIP codes?" when installing a package.
Updated by Vasily Bezruchkin over 8 years ago · 2 revisions