The wiki has been moved to http://wiki.croogo.org.

File structure

A plugin is identified by it’s unique alias. If you have your plugin under the directory app/plugins/example, then your plugin’s alias is example.

Structure

  • app/plugins/example/
    • config/
      • example_activation.php
      • example_bootstrap.php
      • example_routes.php
      • plugin.yml
    • controllers/
      • components/
        • example.php
      • example_controller.php
    • models/
      • behaviors/
    • views/
      • elements/
      • example/
      • helpers/
        • example.php
    • webroot/
      • css/
      • img/
      • js/
    • example_app_controller.php
    • example_app_model.php

Do not forget the plugin.yml file. This is required, otherwise the plugin will not be available in admin panel for activation.

A full working plugin is available in the repository.