我需要一些有关在Phalcon框架中传递参数的信息
范例网址: http://localhost/project/vehicle/new/vinno/1323123
vehicleController{
newAction {
//get the value of vinno
// want to send parameter to view
}
}
尝试转储调度程序参数。
print_r($this->dispatcher->getParams());
上面将根据您的路由器定义为您提供完整的参数数组。有关docs中调度程序的更多信息。
要获取特定的参数值,可以使用getParam()
method。
print_r($this->dispatcher->getParam('your_param_name'));
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句