Home Backend Development PHP Tutorial zend framework 1.9中,resources.frontController.defaultModule配置是用于指定访问网站根目录module吗,该怎么处理

zend framework 1.9中,resources.frontController.defaultModule配置是用于指定访问网站根目录module吗,该怎么处理

Jun 13, 2016 pm 01:50 PM
index quot resources

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"

请高人详细指点,谢谢了!

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

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What file is index.html? What file is index.html? Feb 19, 2024 pm 01:36 PM

index.html represents the home page file of the web page and is the default page of the website. When a user visits a website, the index.html page is usually loaded first. HTML (HypertextMarkupLanguage) is a markup language used to create web pages, and index.html is also an HTML file. It contains the structure and content of a web page, as well as tags and elements used for formatting and layout. Here is an example index.html code: &lt

How to implement jar operation in springboot and copy resources files to the specified directory How to implement jar operation in springboot and copy resources files to the specified directory May 12, 2023 pm 09:34 PM

Springboot implements jar operation and copies resources files to the specified directory 1. Requirements During the project development process, all resources in the project resources/static/ directory need to be copied to the specified directory. Video files need to be downloaded in the company's project. Since the download has an html page, the corresponding static resource files are used to load the multi-channel video, such as js, css.jwplayer, jquery.js and other files, jars made by maven and The path of the usually published project is blocked, so when reading the path, the path of the jar is obtained, and the file path in the jar cannot be obtained. 2. Idea According to my needs, the idea of ​​copying is probably to obtain it first

How to read the file path in the resources directory in Java How to read the file path in the resources directory in Java Apr 19, 2023 am 10:43 AM

The method of printing a file is as follows: /***Read the file content according to the file path**@paramfileInPath*@throwsIOException*/publicstaticvoidgetFileContent(ObjectfileInPath)throwsIOException{BufferedReaderbr=null;if(fileInPath==null){return;}if(fileInPathinstanceofString ){br=newBufferedReader(newFileReader(ne

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 Jun 13, 2016 am 10:23 AM

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code

How does the springboot project read files in the resources directory? How does the springboot project read files in the resources directory? May 19, 2023 am 08:29 AM

1: Use the ClassLoader.getResourceAsStream() method to use the class loader to obtain the input stream of the resource file. This method accepts a resource file path parameter and returns an InputStream object. InputStreaminputStream=getClass().getClassLoader().getResourceAsStream("file.txt"); Note that the resource file path returned by this method is relative to the root path of the class loader. Therefore, for files in the resources directory, you need to add "class" before the file name.

what is mysql index what is mysql index Oct 08, 2023 am 11:47 AM

The index in MySQL means index. It is a data structure used to speed up the query of database tables. The index can be compared to the catalog of a book. It stores the values ​​​​of specific columns in the table and the corresponding row positions, making the database more efficient. Locate and access data quickly. The function of the index is to improve query efficiency. Without an index, the database needs to scan the entire table row by row to find matching data. This method will be very time-consuming in large tables. With an index, the database can The required data rows are quickly located in the order, which greatly improves the query speed.

How springboot reads files under resources How springboot reads files under resources May 12, 2023 am 11:46 AM

Many times in the project, it is necessary to read custom configuration files. No matter how you write the local development tool, you can successfully write it, but when you deploy it to the service, there will be problems. Exception BOOT-INF/classes!/config.xml (file name, directory name or volume label syntax) Incorrect.) There is an exclamation mark in the path. After understanding it, it is probably that the springboot jar is a file, that is, a compressed package. There is no way to read the path in the compressed file, so we need to solve this problem and understand the reading configuration. The principle of the file is to directly obtain the file stream. 1. Reading using the path within the project can only be used in development tools and cannot be read after deployment. (Not universal) Similar: src/main/resources/

PHP source code running problem: index error solution PHP source code running problem: index error solution Mar 09, 2024 pm 09:24 PM

PHP source code running problem: Index error resolution requires specific code examples. PHP is a widely used server-side scripting language that is often used to develop dynamic websites and web applications. However, sometimes you will encounter various problems when running PHP source code, among which "index error" is a common situation. This article will introduce some common causes and solutions of index errors, and provide specific code examples to help readers better deal with such problems. Problem Description: When running a PHP program

See all articles