Skip to content
adampatterson edited this page Dec 13, 2012 · 5 revisions

Creating a module at the low level is very simple.

Required files

  • {module_name}/info.yaml
  • {module_name}/{module_name}.php

The info.yaml file must contain the following valid YAML.

{module_name}/info.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:.

{module_name}/{module_name}.php

<?php
class {module_name} extends Modules {

    public function __init() {
        // Code block
    }

}
Clone this wiki locally