2017-09-05 41 views
0

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

+0

什么?什么是插件? – tasmaniski

+1

的可能的复制[调用插件在其他插件ZF2](https://stackoverflow.com/questions/17301223/call-plugin-in-other-plugin-zf2) –

+0

我认为这个问题可能是一个重复的https:/ /stackoverflow.com/questions/17301223/call-plugin-in-other-plugin-zf2 –

回答

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

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

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

高塔姆您好,感谢您的帮助..它的工作.. – Mukesh

+0

@Mukesh很好的了解,它帮助你,然后标记答案接受,也考虑投票 –