Why can't the new file and file name be accessed under the application directory of thinkphp5?

thinkphp5 rookie, access to 127.0.0.1/index/index/index is normal, then rename the copy of the index directory under the application directory to admin, input 127.0.0.1/admin/index/index or 127.0.0.1/admin is inaccessible, ask why

Nov.15,2021

to modify namespace


access of admin/index.php should be 127.0.0.1/index/admin/index
http://serverName/index.php (or other application entry file) / module / controller / operation / [parameter name / parameter value.]

Menu