如何使用zf-apigility-admin-ui而不是zf-apigility-admin来启用/显示Doctrine菜单

时间:2014-11-18 11:04:56

标签: php doctrine apigility

我想在apigility中使用Doctrine菜单,但是使用骨架中提供的zf-apigility-admin尚不可用。

我尝试在github页面https://github.com/zfcampus/zf-apigility-admin-ui/issues/5中询问,并得到了这个:

  

这是因为Doctrine UI还没有准备好。如果您想使用Doctrine和UI,您应该使用https://github.com/fwahlqvist/zf-apigility-admin-ui

我安装了zf-apigility-admin-ui并对我的配置进行了一些更改:

composer.json

"require": {
"php": ">=5.3.23",
"zendframework/zendframework": ">=2.3.2,<3.0.0",
"zfcampus/zf-apigility": "~1.0",
"zfcampus/zf-apigility-documentation": "~1.0",
"zfcampus/zf-development-mode": "~2.0",
"zfcampus/zf-apigility-doctrine": "dev-master",
"zfcampus/zf-hal": "dev-master#b911038fd47f4efa27aeb1a5a53ee272a0f26f56",
"hounddog/doctrine-data-fixture-module": "0.0.*"},
"require-dev": {
"zendframework/zftool": "dev-master",
"zendframework/zend-developer-tools": "dev-master",
"zfcampus/zf-apigility-admin": "~1.0",
"zfcampus/zf-apigility-welcome": "~1.0",
"zfcampus/zf-deploy": "~1.0",
"fzaninotto/faker": "dev-master",
"zfcampus/zf-apigility-admin-ui": "~1.0"}

development.config.php

'modules' => array(
'ZFTool',
'ZF\Apigility\Admin\Ui',
'ZF\Apigility\Welcome',
'ZF\Apigility\Doctrine\Admin',),

但访问http://localhost:8888/apigility/ui#/

时出现404错误
  

“路由无法匹配请求的网址。”

我如何使用apigility-admin-ui视图,任何想法?

0 个答案:

没有答案