Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ExpressionEngine add-on config file. Belongs in add-on root.
Idea stolen from Brandon Kelly of
Place the following line above the $plugin_info array in pi.[add_on_name].php:
require_once(PATH_THIRD . '[WEBSAFE_ADD-ON_NAME]/config.php');
if (! defined('[ADD_ON_NAME]_V')) {
define('[ADD_ON_NAME]_NAME', 'cpb [ADD-ON NAME]');
define('[ADD_ON_NAME]_V', '[VERSION NUMBER]');
$config['name'] = [ADD_ON_NAME]_NAME;
$config['version'] = [ADD_ON_NAME]_V;
$config['nsm_addon_updater']['versions_xml'] = '[ADD-ON_NAME]';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment