summaryrefslogtreecommitdiff
path: root/doc/plugin-helpers.markdown
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-01-29 11:07:42 -0500
committerFrederic Guillot <fred@kanboard.net>2017-01-29 11:07:42 -0500
commit0371acff89b14b9bdcb03e72fd9637e26e6b517c (patch)
treef5878c9c07705379d137843cb8f92e3cdf7c20a8 /doc/plugin-helpers.markdown
parent3bf4789be255650b64f42231f41383cb13b65572 (diff)
Move English documentation to folder en_US
Diffstat (limited to 'doc/plugin-helpers.markdown')
-rw-r--r--doc/plugin-helpers.markdown40
1 files changed, 0 insertions, 40 deletions
diff --git a/doc/plugin-helpers.markdown b/doc/plugin-helpers.markdown
deleted file mode 100644
index d65467f8..00000000
--- a/doc/plugin-helpers.markdown
+++ /dev/null
@@ -1,40 +0,0 @@
-Registering new helpers
-=======================
-
-Helper skeleton:
-
-```php
-<?php
-
-namespace Kanboard\Plugin\MyPlugin\Helper;
-
-use Kanboard\Core\Base;
-
-class MyHelper extends Base
-{
- public function doSomething()
- {
- return 'foobar';
- }
-}
-```
-
-Register your helper class:
-
-```php
-$this->helper->register('myHelper', '\Kanboard\Plugin\MyPlugin\Helper\MyHelper');
-```
-
-Using your helper from a template:
-
-```php
-<p>
- <?= $this->myHelper->doSomething() ?>
-</p>
-```
-
-Using your helper from another class:
-
-```php
-$this->helper->myHelper->doSomething();
-```