-
Notifications
You must be signed in to change notification settings - Fork 4
Plugins
Pavel Linkesch edited this page Aug 3, 2015
·
4 revisions
The main idea behind Marvin is that everything is a plugin. Even a basic functionality like Pages and Users is handled by separate plugins. Plugins are modules which encapsulate functionalities.
To create a custom plugin, create a folder in /app
named as a plugin. For example: /app/events
to create events plugin.
Now initialize the plugin in /app/config.php
:
<?php
// /app/config.php
$config['plugins'] = array(
// ...
'events',
);
Your plugin is ready to be used. Create a bootstrap.php
file in the plugin's folder which will be an entry point for the plugin.
To see, what is a common structure for a plugin, go see Pages plugin.
-- « Themes