XenForo
Administrative
- Thread starter
- Admin
- #1
I am trying to save data directly to db calling from the middle of another function (not by submitting process).
I can dump the data but it's not being saved. What's wrong? Is the filter related to new field or the incoming data?
Code:
Read more
Read more about this Feed . . .
I can dump the data but it's not being saved. What's wrong? Is the filter related to new field or the incoming data?
Code:
Code:
public function createItem($data)
{
$item = $this->em()->create('My\Addon:Class');
$input = $this->filter([
'id' => 'uint',
'name' => 'str',
'qty' => 'uint',
])...
Read more
Read more about this Feed . . .