current location:Home > Technical Articles > PHP Framework > ThinkPHP

  • How to hide index.php in tp3
    How to hide index.php in tp3
    How to hide index.php in tp3: 1. Find and open the "Application/Common/Conf/config.php" file; 2. Turn on REWRITE mode by modifying "return array('URL_MODEL'=> 2,);".
    ThinkPHP 1251 2023-03-03 10:18:36
  • The latest ThinkPHP6.1.2 version is compatible with PHP8.2!
    The latest ThinkPHP6.1.2 version is compatible with PHP8.2!
    This article brings you relevant knowledge about ThinkPHP. It mainly introduces what updates are there in the latest ThinkPHP6.1.2 version? Friends who are interested can take a look below. I hope it will be helpful to everyone.
    ThinkPHP 1889 2023-02-10 19:56:05
  • Quickly solve the MISS cache miss problem in ThinkPHP5.1
    Quickly solve the MISS cache miss problem in ThinkPHP5.1
    This article brings you relevant knowledge about ThinkPHP5.1. It mainly introduces what CDN is? Why use it? How to solve the ThinkPHP5.1 MISS cache miss problem? Friends who are interested can take a look below. I hope it will be helpful to everyone.
    ThinkPHP 1347 2023-02-08 19:47:09
  • The road to penetration testing: ThinkPHP vulnerability recurrence
    The road to penetration testing: ThinkPHP vulnerability recurrence
    This article brings you relevant knowledge about ThinkPHP, which mainly introduces the relevant content about the recurrence of ThinkPHP vulnerabilities. Let’s take a look at it together. I hope it will be helpful to everyone.
    ThinkPHP 2406 2023-01-04 21:28:32
  • How to close thinkphp trace
    How to close thinkphp trace
    How to close thinkphp trace: 1. Add "define(APP_DEBUG, false);" to the entry file index.php; 2. Add "'SHOW_PAGE_TRACE' = false" to the config.php configuration file; 3. Delete the cache folder Runtime, just refresh the page.
    ThinkPHP 1897 2022-12-21 09:57:43
  • How to query by name in thinkphp
    How to query by name in thinkphp
    In thinkphp, you can query by name by fuzzy querying the LIKE keyword. The implementation code is such as "$data['name']=array('LIKE','%Cheng Huan%');$arr= $m-> where($data)->select();var_dump($arr);", this statement means to query the information of people whose names contain "Cheng Huan".
    ThinkPHP 1690 2022-12-21 09:34:47
  • How to install third-party libraries in thinkphp
    How to install third-party libraries in thinkphp
    How to install third-party libraries in thinkphp: 1. Download the sdk and put the sdk in the extend directory; 2. Introduce “require_once ‘…/extend/aipbaidusdk/AipNlp.php’;” into the controller.
    ThinkPHP 2354 2022-12-21 09:24:12
  • Record how thinkphp5.1 uses Topsdk\Topapi (picture and text)
    Record how thinkphp5.1 uses Topsdk\Topapi (picture and text)
    This article is written by thinkphp tutorial column to introduce you to tp5.1 related knowledge. It mainly records how tp5.1 uses Topsdk\Topapi (connecting with Taobao open platform). I hope it will be helpful to friends in need!
    ThinkPHP 1478 2022-12-20 18:20:03
  • How does thinkphp access different templates based on the device?
    How does thinkphp access different templates based on the device?
    How thinkphp accesses different templates according to the device: 1. Put "function isMobile(){...}" in the "app\common.php" public method; 2. Set the prefix operation in the public method under the index module ; 3. If it is judged to be true, execute the "mobile/index" method, otherwise execute another PC-side controller operation.
    ThinkPHP 1522 2022-12-20 10:14:58
  • How to annotate routes in thinkphp
    How to annotate routes in thinkphp
    How to annotate routes in thinkphp: 1. Open the corresponding tp file; 2. Pass "/* @route('test')*/class Test extends Controller{public function index(){return 'index';...}" Just use the method to annotate resource routing.
    ThinkPHP 959 2022-12-20 09:56:27
  • How to get the requested URL in thinkphp5
    How to get the requested URL in thinkphp5
    Methods for thinkphp5 to obtain the requested URL: 1. Use the "$request = Request::instance();" method of the "\think\Request" class to obtain the current URL information; 2. Use the built-in helper function "$request-> url()" to obtain the complete URL address including the domain name.
    ThinkPHP 1977 2022-12-20 09:49:00
  • How to receive query parameters in thinkphp5
    How to receive query parameters in thinkphp5
    How thinkphp5 receives query parameters: 1. Define two arrays, one for passing parameters in pages, and one for querying the total number of records; 2. Receive query parameters through "input('starting_address')" or pass them directly in paginate parameters.
    ThinkPHP 1796 2022-12-20 09:32:16
  • How to remove thinkphp5 title bar icon
    How to remove thinkphp5 title bar icon
    How to remove the thinkphp5 title bar icon: 1. Find the favicon.ico file under the thinkphp5 framework public; 2. Delete the file or choose another picture to rename it to favicon.ico and replace the original favicon.ico file.
    ThinkPHP 1474 2022-12-20 09:24:04
  • How to write thinkphp admin
    How to write thinkphp admin
    The writing method of thinkphp admin is "<?php namespace app\admin\controller;class Index{public function index(){return '...';}}"; there is an index.php file in the public directory of thinkphp5, copy And rename it to admin.php.
    ThinkPHP 1245 2022-12-20 09:08:10
  • What should I do if I get an error when deploying thinkphp5 in Pagoda?
    What should I do if I get an error when deploying thinkphp5 in Pagoda?
    Solution to the error reported when deploying thinkphp5 in Pagoda: 1. Open the Pagoda server, install the php pathinfo extension and enable it; 2. Configure the ".access" file with the content "RewriteRule ^(.*)$ index.php?s=/$1 [QSA ,PT,L]”; 3. In website management, just enable thinkphp’s pseudo-static.
    ThinkPHP 1582 2022-12-19 11:04:58

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!