1

我通过谷歌搜索做了很多尝试,但我还没有找到合适的解决方案。谁能帮我吗?即使我尝试module.config通过路由更改文件代码,也尝试通过application.config文件在文件中添加模块名称,但它不起作用。

致命错误:在 D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\Mvc\Router\SimpleRouteStack 中未捕获异常 'Zend\Mvc\Router\Exception\InvalidArgumentException' 并带有消息 'Missing "type" option' .php:269 堆栈跟踪:#0 D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\Mvc\Router\Http\TreeRouteStack.php(163): Zend\Mvc\Router\SimpleRouteStack-> routeFromArray(Array) #1 D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\Mvc\Router\Http\TreeRouteStack.php(113): Zend\Mvc\Router\Http\TreeRouteStack->routeFromArray (数组)#2 D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\Mvc\Router\SimpleRouteStack.php(140): Zend\Mvc\Router\Http\TreeRouteStack->addRoute('controllers ', 数组) #3 D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\Mvc\Router\SimpleRouteStack.php(84): Zend\Mvc\Router\SimpleRouteStack->addRoutes(Array) #4 D:\xampp\htdocs\ myproject\vendor\zendframework\zendframework\library\Zend\Mvc\Router\Ht 在 D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php 在第 909 行

4

2 回答 2

0

我已经为我的模块创建了单独的文件,例如 module.config.php 以及 module.php 添加了它适用于我的模块名称的命名空间。只需在 application.config.php 中添加我的模块名称。

于 2014-10-08T10:40:28.813 回答
0

首先您需要安装 zf-commons 并在 module.config.php 中进行配置。

public
vendor
 zf-commons
  zfc-admin
  zfc-user

请看看这个。

https://github.com/ZF-Commons/ZfcAdmin

于 2014-10-07T11:04:09.383 回答