TP If a controller does not have a method, as long as there is a template, the URL will display the template name accordingly.
Example
http://localhost/yiyunmap/map/test
The map controller does not have a test method
But the template file has test.html
The corresponding URL can display the URL
>This doesn’t work. By the way, I don’t have groups. Will it affect the implementation of this function? In addition to creating an EmptyAction empty module, you also need to create an _empty method in each controller. . It's included in every controller. Of course, you can use public classes to avoid such repeated operations. Create a common class controller: CommonAction.class.phpCopy the code and let other controllers inherit it For this controller, something like IndexAction extends CommonAction will do. There seems to be something wrong with the empty method code you posted. header("Location: /404.html"); Your code has been redirected.
App debug is to turn on or off debugging mode and has little to do with caching. If you want to delete the cache, you can delete all files and folders under the Runtime folder.