如何在kohana 3中使用$ this-> uri-> segment(“parent_id”)来获取id ....

时间:2011-08-05 05:50:38

标签: php kohana uri

它给出了错误“ErrorException [Notice]:Undefined property:Controller_Admin_Videocategory :: $ uri”。 请建议

1 个答案:

答案 0 :(得分:2)

这取决于您使用的版本,但如果它是最新且稳定的 - Kohana 3.2,那么:

$this->request->param('parent_id');

here中所述。