第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

在php中怎么用redirect實(shí)現(xiàn)頁(yè)面跳轉(zhuǎn)?

在php中怎么用redirect實(shí)現(xiàn)頁(yè)面跳轉(zhuǎn)?

慕神8447489 2019-02-04 10:06:00
在php中怎么用redirect實(shí)現(xiàn)頁(yè)面跳轉(zhuǎn)?
查看完整描述

2 回答

?
回首憶惘然

TA貢獻(xiàn)1847條經(jīng)驗(yàn) 獲得超11個(gè)贊

1、thinkPHP 的Action類的redirect方法可以實(shí)現(xiàn)頁(yè)面的重定向功能,redirect 重定向的通用語(yǔ)法為:edirect(url,params=array(),delay=0,msg='') // 跳轉(zhuǎn)到 edit 操作  $this->redirect('edit')。

2、// 跳轉(zhuǎn)到 UserAction下的edit 操作 this->redirect('User/edit'),// 跳轉(zhuǎn)到 Admin分組默認(rèn)模塊默認(rèn)操作$this->redirect('Admin/')。3、// 跳轉(zhuǎn)到 Admin分組Index模塊view操作$this->redirect('Admin-Index/view'),// 跳轉(zhuǎn)到 Admin分組Index模塊view操作,uid參數(shù)為1,延遲3秒跳轉(zhuǎn)    $this->redirect('Admin-Index/view', array('uid'=>1)。

4、同項(xiàng)目分組中的URL訪問(wèn)一樣,redirect 中跨分組跳轉(zhuǎn)只是多了一個(gè)分組項(xiàng)目名稱的概念,可以在 redirect 中使用路由,redirect 方法的參數(shù)用法和 U函數(shù) 的用法一致,可參考 U函數(shù) 生成URL地址相關(guān)部分內(nèi)容。


查看完整回答
反對(duì) 回復(fù) 2019-03-14
  • 2 回答
  • 0 關(guān)注
  • 3363 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)