From 0371acff89b14b9bdcb03e72fd9637e26e6b517c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 29 Jan 2017 11:07:42 -0500 Subject: Move English documentation to folder en_US --- doc/en_US/plugin-helpers.markdown | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 doc/en_US/plugin-helpers.markdown (limited to 'doc/en_US/plugin-helpers.markdown') diff --git a/doc/en_US/plugin-helpers.markdown b/doc/en_US/plugin-helpers.markdown new file mode 100644 index 00000000..d65467f8 --- /dev/null +++ b/doc/en_US/plugin-helpers.markdown @@ -0,0 +1,40 @@ +Registering new helpers +======================= + +Helper skeleton: + +```php +helper->register('myHelper', '\Kanboard\Plugin\MyPlugin\Helper\MyHelper'); +``` + +Using your helper from a template: + +```php +

+ myHelper->doSomething() ?> +

+``` + +Using your helper from another class: + +```php +$this->helper->myHelper->doSomething(); +``` -- cgit v1.2.3