Get the App
SLTechnology News&Howtos  ›  Development  › 

Why can't thinkphp6 redirect with redirect

Shulou Source: shulou.com Published: 2022-06-02 16:11:24 10月04日 Update

This article mainly introduces "why thinkphp6 can not be redirected with redirect". In daily operation, I believe that many people have doubts about why thinkphp6 can not be redirected with redirect. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the question of "why thinkphp6 can not be redirected with redirect". Next, please follow the editor to study!

TP6 cannot use redirect redirection in _ _ construct and _ initialize?

Description

The current version of return redirect ('index/index'); cannot be used in _ _ construct and _ initialize, so you can install the previous code for ease of use

Installation

Composer require liliuwei/thinkphp-jump

Usage example

Tags: Learning more help practical next code articles methods versions theories knowledge examples articles websites materials follow questions easy to use practice solutions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Tech Info Shulou Information Huawei Microsoft