0 它給出錯誤「ErrorException [Notice]:Undefined property:Controller_Admin_Videocategory :: $ uri」。 請指點 來源 2011-08-05 Json
2 這取決於你使用的是什麼版本,但如果其最新的穩定 - Kohana 3.2,則: $this->request->param('parent_id'); 正如here解釋。 來源 2011-08-05 07:00:48 daGrevis +0 '$ this-> request-> param()'從3.0開始可用,所以它是唯一一個3.x版本的正確答案;) – biakaveron +0 他,他。但它也在3.2中! :D我沒有說它不是在其他版本! :D:D – daGrevis +0 當我使用if($ this-> request-> param(「parent_id」)){parent_id = $ this-> request-> param(「parent_id」);在視圖文件中,它給出了以下異常「ErrorException [致命錯誤]:使用$ this當不在對象上下文中」..... plese建議如何在視圖中使用它....先謝謝 – Json
'$ this-> request-> param()'從3.0開始可用,所以它是唯一一個3.x版本的正確答案;) – biakaveron
他,他。但它也在3.2中! :D我沒有說它不是在其他版本! :D:D – daGrevis
當我使用if($ this-> request-> param(「parent_id」)){parent_id = $ this-> request-> param(「parent_id」);在視圖文件中,它給出了以下異常「ErrorException [致命錯誤]:使用$ this當不在對象上下文中」..... plese建議如何在視圖中使用它....先謝謝 – Json