我安装了 ZFTool(/usr/bin/zf2
参考资料/lib/ZendFramework/ZFTool/zf.php
)
user@machine:/var/www/.../projectroot/module/Catalo# zf2 version
ZFTool - Zend Framework 2 command line Tool ver. 0.1
The ZFTool is using Zend Framework 2.1.3
它工作正常。但是当我尝试生成类图时
user@machine:/var/www/.../projectroot/module/Catalo# zf2 classmap generate . -w
它创建了一个路径错误的类图:
<?php
// Generated by Zend Framework 2
return array(
'Catalog\Module' => __DIR__ . '/../../../../../../.././Module.php',
'Catalog\Controller\CatalogController' => __DIR__ . '/../../../../../../.././src/Catalog/Controller/CatalogController.php',
);
为什么?如何修复?