0

我安装了学说,这与 zfcUser 一起使用。现在我想安装模块专辑,我得到以下错误:

发生 404 错误页面未找到。请求的控制器无法映射到现有的控制器类。

控制器:专辑/专辑(解析为无效的控制器类或别名:专辑/专辑)无异常可用

有人可以提供我的解决方案吗?

设置来自:http ://www.jasongrimes.org/2012/01/using-doctrine-2-in-zend-framework-2/

4

1 回答 1

0

It sounds like you may not have loaded the module in your /config/application.config.php

Should look something like this;

<?php
return array(
// This should be an array of module namespaces used in the application.
'modules' => array(
'Application',
'DoctrineModule',
'DoctrineORMModule',
'Album',

),

// etc ...

BTW, I am new to ZF2 and doctrine also - I found this example of the album module using doctrine that actually works and it was a great help to get started ( https://github.com/shanethehat/zf2-doctrine-tutorial )

于 2013-08-08T00:22:34.150 回答