-
Notifications
You must be signed in to change notification settings - Fork 0
Helper
Favre Anael edited this page May 13, 2016
·
2 revisions
A very simple helper holder in the wf()
function.
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');
});
Anywhere you can run a registered helper :
wf()->view()->nest('view', 'other_view');