国产成人毛片视频|星空传媒久草视频|欧美激情草久视频|久久久久女女|久操超碰在线播放|亚洲强奸一区二区|五月天丁香社区在线|色婷婷成人丁香网|午夜欧美6666|纯肉无码91视频

域名跳轉(zhuǎn)網(wǎng)站 thinkphp如何根據(jù)域名跳轉(zhuǎn)到其他目錄頁(yè)面?

thinkphp如何根據(jù)域名跳轉(zhuǎn)到其他目錄頁(yè)面?ThinkPHP重定向方法可以實(shí)現(xiàn)頁(yè)面重定向(跳轉(zhuǎn))功能。重定向方法的語(yǔ)法如下:$this->redirect(string URL,array p

thinkphp如何根據(jù)域名跳轉(zhuǎn)到其他目錄頁(yè)面?

ThinkPHP重定向方法可以實(shí)現(xiàn)頁(yè)面重定向(跳轉(zhuǎn))功能。

重定向方法的語(yǔ)法如下:

$this->redirect(string URL,array params,int delay,string MSG)

參數(shù)說明:

Parameter

Description

URL

必須是重定向的URL表達(dá)式。

Params

可選,其他URL參數(shù)。

Delay

可選,重定向延遲,以秒為單位。

MSG

可選,重定向提示信息。

ThinkPHP redirect instance

在index模塊的index方法中,重定向到該模塊的select操作:

class indexaction extends action{

public function index(){

$this->redirect(“select”,array(“status”=>1),3,“page Jump~”)

]}//直接重定向,不帶延遲

$this->redirect(“select”,array(“status”=>1))

//延遲跳轉(zhuǎn),但不帶參數(shù),輸出默認(rèn)提示

$this->redirect(“select”,“,3) ]//重定向到其他模塊操作

$this->redirect(“public/login”)//重定向到其他組

$this->redirect(“admin public/login”)