Zend Framework 2에서는 모든 컨트롤러가 기본적으로 AbstractActionController를 확장하는 것처럼 보입니다.사용자 정의 컨트롤러를 사용하여 Zend Framework 2의 모듈 컨트롤러 확장
모든 컨트롤러가 CustomController를 확장하여 AbstractActionController를 확장 할 수있는 방법이 있다면 생각 중입니다.
이 CustomController의 목적은 사용자가 다른 컨트롤러에 액세스 할 수있는 권한이 있는지 여부를 확인하고 메뉴 탐색을 생성하는 것입니다.
여전히 좋은 생각입니까, 그렇다면이 작업을 수행 할 예정입니까?
**IndexController.php**
class IndexController extends CustomController {
}
**CustomController.php**
class CustomController extends AbstractActionController {
}
감사합니다, 물론