Skip to content

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 of Model_Snippet.
  • view() returns an instance of Zend_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.
Clone this wiki locally