


zend framework 1.9中,resources.frontController.defaultModule配置是用于指定访问网站根目录module吗,该怎么处理
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"
请高人详细指点,谢谢了!
------解决方案--------------------
不对,你这样是不行的。
------解决方案--------------------
默认的控制器类名是不能带前缀的,你一定要实现的话可以添加个路由指向你那个模块

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

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: <

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

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

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.

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.

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 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
