0
我用Symfony生成了简单的模型。如何用表单GET属性保存?
Job:
columns:
from_get: { type: integer, notnull: true }
type: { type: string(255) }
在JobForm.class.php
:
$this->setWidget('from_get', new sfWidgetFormInputHidden());
,我有行动:
http://mysite.com/job/new?get=3
我怎么能保存ID = 3自动from_get?
在JobForm.class.php
$this->setDefault('from_get', $this->request->getParemeter('get'));
犯规的工作。