2017-09-05 6 views
0

젠드 프레임 워크 3의 다른 플러그인에서 플러그인 방법을 어떻게 사용합니까?젠드 프레임 워크 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 잘 알고, 그 도움 것을 당신은 다음과 같이 답을 표시 받아 들여졌고, 또한 투표를 고려하십시오 –