如他们的网站所述,我在 zend 框架 2 中遇到致命错误和警告,这是我第一次使用 zend fraework(以及 zend fraework 2)。那些是 - -
1.Warning: include(F:\xampp\htdocs\zf2-tutorial\module\Album/config/module.config.php):
failed to open stream: No such file or directory in F:\xampp\htdocs\zf2-
tutorial\module\Album\Module.php on line 26
2. Warning: include(): Failed opening 'F:\xampp\htdocs\zf2-
tutorial\module\Album/config/module.config.php' for inclusion (include_path='.;F:\xampp\php\PEAR') in F:\xampp\htdocs\zf2-
tutorial\module\Album\Module.php on line 26
3. Fatal error: Uncaught exception 'Zend\ModuleManager\Listener\Exception\InvalidArgumentException'
with message 'Config being merged must be an array, implement the Traversable interface, or be an instance of Zend\Config\Config. boolean given.'
in F:\xampp\htdocs\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\ModuleManager\Listener\ConfigListener.php:317 Stack trace: #0 F:\xampp\htdocs\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\ModuleManager\Listener\ConfigListener.php(127):
Zend\ModuleManager\Listener\ConfigListener->addConfig('Album', false)
#1 [internal function]: Zend\ModuleManager\Listener\ConfigListener->onLoadModule(Object(Zend\ModuleManager\ModuleEvent)) #2 F:\xampp\htdocs\zf2-
tutorial\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(468)
: call_user_func(Array, Object(Zend\ModuleManager\ModuleEvent)) #3 F:\xampp\htdocs\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(207)
: Zend\EventManager\EventManager->triggerLis in F:\xampp\htdocs\zf2-
tutorial\vendor\zendframework\zendframework\library\Zend\ModuleManager\Listener\ConfigListener.php on line 317
我正在尝试 4 天,在网上搜索解决方案,但找不到任何... …………?