امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I've this in the template:
HTML:
My public controller looks like the following:
PHP:
Read more
HTML:
<xf:delete href="{{ link('foo/bar/delete', $foo, {'source':'a1'}) }}" />My public controller looks like the following:
PHP:
کد:
public function actionDelete(ParameterBag $params)
{
$foo = $this->assertFooExists($params->sys_id);
if(!$foo->canDelete($error))
{
return $this->noPermission($error);
}
$source = trim($this->filter('source', 'str'));
if($source == 'b1')
{
$path = 'foo/bar/about';
$entity =...
Read more
