In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces what are the problems related to TP5, the content is very detailed, interested friends can use for reference, I hope it can be helpful to you.
TP5 related problem solving 1. Default entry file public, other files are not allowed to access 2. In application, the background is generally placed in the admin, and the foreground code is generally placed in the index, following the role of files in the 3.application folder of the MVC architecture-files that need to be read by the command.php command line to start the TP5 framework-the commonly used functions of common.php are written in this file-config.php configuration files, what to open, what to close, and all the files that are set up here-the files read when database.php connects to the database. For example, user name-route.php routing file, beautify url-tags.php extension framework using 4.public file function-static put static files such as css, html, etc.-favicon.ico this is the site icon, displayed in the tab bar-index.php site entry file, all requests will go through here-robots.txt forbids search engines from crawling pages-router.php without deploying the website environment. Configuring this file allows the website to run the development specification-the directory is made up of lowercase letters and underscores-the file name of the class is defined by a namespace, and the namespace is the same as the path to the class library file. Class files are humped with uppercase initials and the rest are lowercase and underlined. -the class name is consistent with the class file name, using the hump name with uppercase initials. -the function is named with a hump and its initials are lowercase. -the property name is hump, the first letter is lowercase-a function or method that begins with a double underscore is a magic method. -constants are named with uppercase letters and underscores. Tables and fields must be named with lowercase letters and underscores, and cannot begin with an underscore. Apache configuration root directory
Modify vhosts.conf
The commented code under DocumentRoot "C:\ phpStudy\ PHPTutorial\ WWW\ public" ServerName localhost ServerAlias localhost # Accessing with "localhost" forbids access to # Options-Indexes-FollowSymLinks + ExecCGI Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted DocumentRoot "C:\ phpStudy\ PHPTutorial\ WWW\ public" ServerName www.gohosts.com ServerAlias gohosts.com Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted apache configuration pseudo static
Httpd.conf
Remove the # in front of LoadModule rewrite_module
Replace AllowOverride None with AllowOverride All (there are multiple settings that need to be replaced) and then save
In the appropriate directory, add the .htacces file
Options + FollowSymlinks-Multiviews RewriteEngine On RewriteCond% {REQUEST_FILENAME}!-d RewriteCond% {REQUEST_FILENAME}!-f RewriteRule ^ (. *) $index.php] iis configuration pseudo-static
Add a web.config file
On the TP5-related problems to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.