簡體   English   中英

Cakephp $ this-> request-> params ['pass'] [0]是什么意思?

[英]Cakephp what does $this->request->params['pass'][0] mean?

嗨,我在這行代碼中需要幫助,我已經在我找到的文件中搜索了$this->request->params['pass'][0]但我無法理解它的用途是什么

$this->request->params['pass'][0]是什么意思?

有人可以幫助我嗎?

http://book.cakephp.org/2.0/en/controllers/request-response.html

$this->request->params['pass'] 

表示url中傳遞的參數

示例:您的請求url localhost/calendars/view/recent/mark

recentmark都傳遞給CalendarsController::view()

$this->request->params['pass']是一個數組值array ([0]=>recent [1]=>mark)

所以,在上面的例子中

$this->request->params['pass'][0] = "recent"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM