Detailed explanation of Thinkphp5 integrated grid++ report
藏色散人
Release: 2021-02-20 17:30:34
forward
2767 people have browsed it
The tutorial column of thinkphp below will introduce to you how Thinkphp5 integrates grid reports. I hope it will be helpful to friends in need!
## After checking many articles, there are very few articles on re-integration in thinkphp. Based on consulting online information and examples provided by grid, the process of integrating grid in thinkphp5 was completed.
These three are the js used by the grid web plug-in , I put these three files in the public/admin/js directory, so... (Actually, just introduce the path wherever you put them) ######2. Make reports in the grid## ####Just follow the operating procedures######3. Insert the designer plug-in into the web page###
public function DisplayViewReport() {
return $this->fetch();
}
Copy after login
###4. Modify the database connection code ######In the mysql_GenXmlData.php file in the Data directory, fill in the mysql_connect() according to your own database server conditions, and write your own database name in mysql_select_db(). ######### This is the simplest integration case, and multi-table queries are not involved. Start simple, and complex ones will become simple! #########
The above is the detailed content of Detailed explanation of Thinkphp5 integrated grid++ report. For more information, please follow other related articles on the PHP Chinese 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