Php 如何在prestashop中重命名自定义模块
我已经开发了一个自定义模块,并从后台安装。最近,我收到了更改模块名称的要求 我试过这些步骤Php 如何在prestashop中重命名自定义模块,php,symfony,prestashop,prestashop-modules,Php,Symfony,Prestashop,Prestashop Modules,我已经开发了一个自定义模块,并从后台安装。最近,我收到了更改模块名称的要求 我试过这些步骤 卸载我的模块 重命名我的模块文件夹名称(我的装运->装运模块) 重命名模块文件夹下的模块文件(my_shipping.php-> 装运(U模块) 重命名类名和_构造名 然后我刷新了我的后台模块选择,并在已安装模块选项卡下看到了它。(但我在卸载它时开始了这些步骤)。然后我尝试卸载它。然后它显示给我 无法卸载模块xxx。模块未安装 如何重命名现有的自定义模块 class Shipping_module
已安装模块
选项卡下看到了它。(但我在卸载它时开始了这些步骤)。然后我尝试卸载它。然后它显示给我
无法卸载模块xxx。模块未安装
如何重命名现有的自定义模块
class Shipping_module extends CarrierModule
{
protected $config_form = false;
public function __construct()
{
$this->name = 'shipping_module';
$this->tab = 'shipping_logistics';
$this->version = '1.0.0';
$this->author = 'DDD';
$this->need_instance = 0;
}
}
在我看来,由于某些错误,它似乎没有在步骤1卸载 尝试以下步骤
在我看来,由于某些错误,它似乎没有在步骤1卸载 尝试以下步骤
$this->name = 'custom';
$this->tab = 'custom';
$this->version = '0.0.1';
$this->author = 'custom';
$this->need_instance = 0;
$this->add();//or $this->save;
$this->[name_of_uninstall()]; //example $this->uninstall();
$this->name = 'custom';
$this->tab = 'custom';
$this->version = '0.0.1';
$this->author = 'custom';
$this->need_instance = 0;
$this->add();//or $this->save;
$this->[name_of_uninstall()]; //example $this->uninstall();
选项:
$this->name = 'custom';
$this->tab = 'custom';
$this->version = '0.0.1';
$this->author = 'custom';
$this->need_instance = 0;
$this->add();//or $this->save;
$this->[name_of_uninstall()]; //example $this->uninstall();
$this->name = 'custom';
$this->tab = 'custom';
$this->version = '0.0.1';
$this->author = 'custom';
$this->need_instance = 0;
$this->add();//or $this->save;
$this->[name_of_uninstall()]; //example $this->uninstall();