Skip to content

Instantly share code, notes, and snippets.

@robertbasic
Created July 23, 2011 17:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save robertbasic/1101633 to your computer and use it in GitHub Desktop.
Calling direct methods on ZF2 view helpers
<?php
// as in ZF2 there's no more automagical calling of view helpers
// things are a changed a bit...
$view->broker('helper', array(/*options to pass to the helper*/));
// or
$view->broker('helper')->direct(array(/*options to pass to the helper*/));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment