-
Notifications
You must be signed in to change notification settings - Fork 5
functions
Harmen Janssen edited this page May 25, 2018
·
1 revision
In application/functions.php
you'll find a whole bunch of utility functions, some handy shortcuts and some polyfills.
Note: all the functional-style functions some
, array_pluck
, compose
et cetera are deprecated in favor of Garp-Functional.
Shortcut functions:
-
model('Snippet')
returns an instance ofModel_Snippet
. -
view()
returns an instance ofZend_View
as configured in your application. -
partial($name, $params)
will render the given partial. -
snippet($identifier)
will return the rendered output (text or html, based on its settings) of the given snippet.