如何在zend框架3中使用另一个插件注入插件方法?

时间:2017-09-05 13:54:41

标签: zend-framework3

我们如何在zend框架3中的另一个插件中使用插件方法?

1 个答案:

答案 0 :(得分:0)

$controller = $this->getController(); // get current controller

$otherPlugin = $controller->otherPlugin(); // get the another plugin obj

$otherPlugin->getOtherPluginMethod(); // now call another plugin method