Skip to content
Favre Anael edited this page May 13, 2016 · 2 revisions

A very simple helper holder in the wf() function.

Register a new helper

In a package, you can register your helper with :

wf()->add('my_function', function() {
    // Do what you want to do here
    // IoC example : return app()->make('Path\To\MyService');
});

Call a registered helper

Anywhere you can run a registered helper :

wf()->view()->nest('view', 'other_view');
Clone this wiki locally