forked from adampatterson/Tentacle
-
Notifications
You must be signed in to change notification settings - Fork 1
Creating a module
adampatterson edited this page Dec 13, 2012
·
5 revisions
Creating a module at the low level is very simple.
- {module_name}/info.yaml
- {module_name}/{module_name}.php
The info.yaml file must contain the following valid YAML.
name: {module_name}
url: http://tentaclecms.com
version: 1.0
description: Tentacles core Plugin
author:
name: Adam Patterson
url: http://adampatterson.ca
The one main stipulation is that the {module_name} must be the same as the folder that the info.yaml is located in and mist be the same value of name:.
<?php
class {module_name} extends Modules {
public function __init() {
// Code block
}
}