저는 실제로 같은 동작을하는 컨트롤러가 2 개 있습니다. 다른 컨트롤러에서 동일한 작업을 어떻게 참조합니까? 내가 AdminController에 넣어 무엇을 :: listAction을 위 난 단지 UserController :: listAction에서 코드를 작성해야 있도록젠드 프레임 워크 액션을 복제하지 않고 '복사'하는 방법?
class UserController extends Zend_Controller_Action {
public function listAction() {
//do something here
}
}
class AdminController extends Zend_Controller_Action {
public function listAction() {
//how to call UserController::listAction here?
}
}
?
감사