How do I set up custom zf tool environment variables such as module root and application root?
I manage a custom build framework, where we're slowly migrating our code into a more ZF style architecture. We've started by adding our code into modules, under a custom directory called 'api'. From there, we worked on keeping with the ZF style. I'm having trouble to get ZFTool to recognize our setups. Or to be honest, any setup. For starters, I'm running into an issue were ZFTool doesn't recognize my root directory as the application root: $ zf modules No modules installed. Are you in the root folder of a ZF2 application? $ l api/ config/ errordocs/ htdocs/ lib/ locale/ module@ tests/ test.xml vendor/ $ zf create module TestMod The path . doesn't contain a ZF2 application. I cannot create a module here. "module" is a soft link to "api" Secondly, it would appear ZFTool just doesn't even like the Skeleton project. When attempting to understand how ZFTool works, I installed the quick-start skeleton app: ZendSkeletonApplication$ l composer.json composer.phar* data/ LICENSE.txt public/ vendor/ composer.lock config/ init_autoloader.php module/ README.md ZendSkeletonApplication$ zf modules No modules installed. Are you in the root folder of a ZF2 application? ZendSkeletonApplication$ zf create module TestMod The module TestMod has been created ZendSkeletonApplication$ zf modules No modules installed. Are you in the root folder of a ZF2 application? ... ZF successfully created a module. But still unable to list the installed modules. What do I need to get ZFTool to recognize my application root and play nice with our custom setup? --- Philip [email protected] http://www.gpcentre.net/
