امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I have an upload form and users can upload a file, but I would like to check on save if they already have an entry, if so then delete it.
So I'm trying to do it in my actionSave:
Code:
I already have a functioning actionDelete:
Code:
Read more
So I'm trying to do it in my actionSave:
Code:
کد:
public function actionSave(ParameterBag $params) {
// validate form inputs
// check if user already has an entry, if so delete it
}
I already have a functioning actionDelete:
Code:
کد:
$plugin = $this->plugin('XF:Delete');
return $plugin->actionDelete(
$signup,
$this->buildLink('signup/delete'...
Read more
