Friday, December 21, 2012

Zend framework 2 get other view helper instance

in view:

$oFormat = $this->plugin("dateFormat");
$oFormat->setLocale("en_GB");
echo $oFormat->__invoke(...);

to invoke directly:
echo $this->dateFormat(...);

No comments: