Docs
Addons
Community
News
Documentation
/
API
BearFramework\App\Shortcuts::add
Creates a new shortcut.
public
self add
(
string $name
, callable
$callback
)
Parameters
name
The name of the shortcut property.
callback
The callback to return the shortcut value.
Returns
Returns a reference to itself.
Details
BearFramework\App\Shortcuts
Location: ~/src/App/Shortcuts.php
back to index
The information on this page is created for version 1.1 of Bear Framework and may not be applicable for other versions of the framework.