I am unable to install the ZfcUser / ZfcBase modules into the ZF2 Skeleton Application. (Ubuntu 12.10 server, Apache, PHP5.4.6)
1) Download and unzip the ZF2 skeleton application
2) Download and unzip ZF2 library into /vendor/ZF2
At this point, the skeleton application works fine.
3) Download and unzip ZfcBase and ZfcUser into /vendor/ (e.g. so that I have /vendor/ZfcXxxx/Module.php)
4) Edit config/application.config.php to include the two new modules
<?php
return array(
// This should be an array of module namespaces used in the application.
'modules' => array(
'Application',
'ZfcBase',
'ZfcUser',
),
I now get
Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (ZfcBase) could not be initialized.' in /home/ubuntu/zf2-skel/vendor/ZF2/library/Zend/ModuleManager/ModuleManager.php:144
Stack trace:
#0 /home/ubuntu/zf2-skel/vendor/ZF2/library/Zend/ModuleManager/ModuleManager.php(85): Zend\ModuleManager\ModuleManager->loadModule('ZfcBase')
#1 [internal function]: Zend\ModuleManager\ModuleManager->onLoadModules(Object(Zend\ModuleManager\ModuleEvent))
#2 /home/ubuntu/zf2-skel/vendor/ZF2/library/Zend/EventManager/EventManager.php(464): call_user_func(Array, Object(Zend\ModuleManager\ModuleEvent))
#3 /home/ubuntu/zf2-skel/vendor/ZF2/library/Zend/EventManager/EventManager.php(208): Zend\EventManager\EventManager->triggerListeners('loadModules', Object(Zend\ModuleManager\ModuleEvent), NULL)
#4 /home/ubuntu/zf2-skel/vendor/ZF2/library/Zend/ModuleManager/ModuleManager.php(104): Zend\EventManager\EventManager->trigger('loadModules', Object(Zend\ModuleManager\ModuleManager), Object(Zend\ModuleMan in /home/ubuntu/zf2-skel/vendor/ZF2/library/Zend/ModuleManager/ModuleManager.php on line 144
Presumably I'm missing some autoloading config...