XenForo
Administrative
- Thread starter
- Admin
- #1
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:
Code:
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
ادامه مطلب...