开发者

Appending to posted data in CakePHP

开发者 https://www.devze.com 2022-12-15 20:11 出处:网络
If I have posted to controller with data and save that data with开发者_开发技巧... $this->Flo->save($this->data)

If I have posted to controller with data and save that data with开发者_开发技巧...

$this->Flo->save($this->data)

Is there a way for me to insert a name/value pair into that data object before I run the save?


Do you mean something like this?

$this->data['Flo']['name'] = $value;
$this->Flo->save($this->data);
0

精彩评论

暂无评论...
验证码 换一张
取 消