XenForo
Administrative
- Thread starter
- Admin
- #1
Hi experts,
In my entity's
PHP:
This is throwing the...
Read more
ادامه مطلب...
In my entity's
_postSave
function, my use case is to update a column belonging to the same entity. So I'm using the following code:PHP:
Code:
protected function _postSave()
{
// sys_id is primary key column on the entity
$upload = $this->request->getFile('upload', false, false);
$filename = 'myfile_'.$this->sys_id.'.'.$upload->getExtension(); // so this becomes something like myfile_123.png
$this->path_to_file = $filename;
}
This is throwing the...
Read more
ادامه مطلب...