我已经创建了模块BookList,在localhost/book上我得到了错误:
"The requested URL /book was not found on this server." 当我试图打开localhost/application时,我得到了错误:
Not Found<br>
The requested URL /application was not found on this server.<br>
Apache/2.4.18 (Ubuntu) Server at localhost Port 80我已经确认我的zendskeleton-application实际上正在工作:

我通过设置AllowOverride All来配置Apache配置来解决这个问题。
发布于 2017-01-24 15:45:54
你在module.config.php中设置路由器了吗?
就像在https://framework.zend.com/manual/2.3/en/user-guide/routing-and-controllers.html
发布于 2017-01-27 09:10:46
如果您自己创建了模块(不使用命令提示符),则应该在ProjectName/config/autoload/application.config.php中添加“模块名”,并在其中添加模块名。也就是说,
<?php
return array(
'modules' => array(
'ZendDeveloperTools',
'DoctrineModule',
'DoctrineORMModule',
'Application',
),
'module_listener_options' => array(
'module_paths' => array(
'./module',
'./vendor',
),
'config_glob_paths' => array(
'config/autoload/{{,*.}global,{,*.}local}.php',
),
),
);在返回数组中,在“模块”下,添加模块名,如果有任何问题,可以随意询问。
https://stackoverflow.com/questions/41829431
复制相似问题