Skip to content

Instantly share code, notes, and snippets.

@apoca
Created February 24, 2014 15:52
Show Gist options
  • Save apoca/9190937 to your computer and use it in GitHub Desktop.
Save apoca/9190937 to your computer and use it in GitHub Desktop.
public function getControllerPluginConfig()
{
return array(
'factories' => array(
// call this key zmPlugin in your action controller
'emailsPlugin' => function ($sm)
{
$emailPluginController = new \Application\Controller\Plugin\EmailsPluginController();
$emailPluginController->setServiceManager($sm);
return $emailPluginController;
}
)
);
}
in controller
// buyer
$this->emailsPlugin()->sendMailsTemplates(5, $sellAfter->buyer_id, $sellAfter->id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment