diff options
author | Frédéric Guillot <fred@kanboard.net> | 2018-04-06 10:54:58 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-04-06 10:54:58 -0700 |
commit | 0b306fa60ad84ea077111e0ff7b59208ba7bc8a3 (patch) | |
tree | 5d8941b5950ede2db8ca3fba0213792db0f07a50 /doc/es_ES/plugin-helpers.markdown | |
parent | ac11220a1aa7ae30b8827d9bbf221888d3edd0a7 (diff) |
Move documentation to https://docs.kanboard.org/
Diffstat (limited to 'doc/es_ES/plugin-helpers.markdown')
-rw-r--r-- | doc/es_ES/plugin-helpers.markdown | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/doc/es_ES/plugin-helpers.markdown b/doc/es_ES/plugin-helpers.markdown deleted file mode 100644 index 66591075..00000000 --- a/doc/es_ES/plugin-helpers.markdown +++ /dev/null @@ -1,39 +0,0 @@ -Registrar nuevos helpers -======================= - -Estrucura del helper: - -```php -<?php - -namespace Kanboard\Plugin\MyPlugin\Helper\MyHelper; - -use Kanboard\Core\Base; - -class MyHelper extends Base -{ - public function doSomething() - { - return 'foobar'; - } -} -``` -Registrar tu helper en la clase: - -```php -$this->helper->register('myHelper', '\Kanboard\Plugin\MyPlugin\Helper\MyHelper'); -``` - -Usar tu helper desde una plantilla **Template**: - -```php -<p> - <?= $this->myHelper->doSomething() ?> -</p> -``` - -Usar tu helper dese otra clase: - -```php -$this->helper->myHelper->doSomething(); -``` |