AddonsAction::startAddon PHP Метод

startAddon() публичный Метод

开启插件操作
public startAddon ( )
    public function startAddon()
    {
        $result = model('Addon')->startAddons(t($_GET['name']));
        if (true === $result) {
            $this->success('启用成功');
        } else {
            $this->error('启动失败');
        }
    }