...
Finally, my_plugin_plugin.php is a special class that must extend the Plugin class of /components/plugins/lib/plugin.php. This class is used for installing, upgrading, uninstalling, and branding the plugin.
Installation Logic
If your plugin requires any code to execute when installed, place that logic in your plugin's install() method.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?php
class MyPluginPlugin {
...
public function install() {
// Place installation logic here
}
}
?> |
Info | ||
---|---|---|
| ||
See how you can use the Record component to manipulate the database in the Database Access section of this manual. |