나는 기본적인 zend 프레임 워크 프로젝트를 만들고 거기에 몇 개의 추가 모듈을 추가했다. 각 모듈에서 별도의 구성 파일을 작성하기로했습니다. 나는 그물에 일부 리소스를 따라, 그리고 제안으로, 나는 그것의이 오류를 제공,문제 설정 모듈 특정 설정 파일
class Custom_Bootstrap extends Zend_Application_Module_Bootstrap {
protected function _bootstrap()
{
$_conf = new Zend_Config_Ini(APPLICATION_PATH . "/modules/" . $this->getModuleName() . "/configs/application.ini", APPLICATION_ENV);
$this->_options = array_merge($this->_options, $_conf->toArray());
parent::_bootstrap();
}
}
그것조차 작동하지 않는 부트 스트랩 클래스 (안 애플리케이션 부트 스트랩 클래스)에 다음 코드를 배치했다. Zend_Application_Bootstrap_BootstrapAbstract
의 소스 코드를 보면
Strict Standards: Declaration of Custom_Bootstrap::_bootstrap() should be compatible with that of Zend_Application_Bootstrap_BootstrapAbstract::_bootstrap() in xxx\application\modules\custom\Bootstrap.php on line 2
아니, 도움이되지 않았다. 같은 오류 – mrN
이제 서브 클래스의 메소드가'protected function _bootstrap ($ resource = null)'으로 정의 되었는데도 여전히 오류가 발생합니까? 어떤 버전의 ZF를 사용하고 있습니까? 'Zend_Application_Module_Bootstrap'에서'_bootstrap'이 선언 된 모습을 볼 수 있습니까? – ChrisA
최신 1.11.9 – mrN