zend framework 1.9中,resources.frontController.defaultModule配备是用于指定访问网站根目录module吗

WBOY
Release: 2016-06-13 12:57:48
Original
791 people have browsed it

zend framework 1.9中,resources.frontController.defaultModule配置是用于指定访问网站根目录module吗
为什么我的配置按如下,可以正常访问网站根目录http://localhost/,和http://localhost/acc/,等
resources.frontController.defaultModule = "default"
resources.frontController.defaultControllerName = "index"
resources.frontController.defaultAction = "index"

但是我想将acc设为默认module,网站就完全不能访问了
resources.frontController.defaultModule = "acc"
resources.frontController.defaultControllerName = "index"
resources.frontController.defaultAction = "index"

请高人详细指点,谢谢了!
------解决方案--------------------
不对,你这样是不行的。
------解决方案--------------------
默认的控制器类名是不能带前缀的,你一定要实现的话可以添加个路由指向你那个模块

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template