get
- Ariadne >
- Library >
- Ariadne 2.2 >
- Manuals >
- Programmers Reference >
- Classes >
- Object >
- PINP Methods >
(array) get($path, $function="view.html", $args="")
Calls the given template on the given object.
| Argument | Description |
|---|---|
| (mixed) $path | The path to the object. |
| (string) $function | The name of the template to call on the object. |
| (mixed) $args | Arguments to that template, as urlencoded string, or an array |
get() tries to call the given template ($function) in the object with the given path ($path). It passes the arguments ($args) to the template. See call() for a more detailed description of the available variables in a template.
If the template returns a result value ($arResult), get returns it in an array, as the first (and only) element.
An easy way to get the result value is to use the function current() on the resulting array.

