トリガーされたイベントで phtml ファイルをレンダリングする必要があります。
私のコードは:
class Module
{
//...
public function onBootstrap(MvcEvent $e) {
$app = $e->getApplication ();
$sem = $app->getEventManager ()->getSharedManager ();
$sem->attach ( 'Events', 'onExampleEvent', function ($e) {
return 'html...';
} );
}
//...
}
html...
レンダリングされた phtml ファイルに置き換えるにはどうすればよいですか?