asset()
asset(string $url = "") : string
Shortcut to create an url for a static asset.
Parameters
| string | $url | url to use when creating the url. |
Returns
string —as resulting url.
| ViewHelperTrait | Trait with view helpers, provided by the ThemeEngine to the views. |
| ViewRenderFileInterface | Render a view based on a template file and a dataset. |
| Exception | Anax base class for wrapping sessions. |
| View | A view connected to a template file. |
| View2 | A view connected to a template file, supporting Anax DI. |
| ViewCollection | A view collection supporting Anax DI, store all views per region, render at will. |
| ViewContainer | A view container, store all views per region, render at will. |
| ViewRenderFile | Render a view based on a template file and a dataset. |
| ViewRenderFile2 | Render a view based on a template file and a dataset. |
showEnvironment(array $variables, array $functions) : string
Show variables/functions that are currently defined and can be used within the view. Call the function with get_defined_vars() as the parameter.
| array | $variables | should be the returned value from get_defined_vars() |
| array | $functions | should be the returned value from get_defined_functions() |
showing variables and functions.