我开发了一个自定义模块并从后台安装它。最近我需要更改模块名称。
我尝试了这些步骤。
卸载我的模块
重命名我的模块文件夹名称(my_shipping -> shipping_module )
重命名模块文件夹下的模块文件(my_shipping.php -> shipping_module)
重命名类名和 __construct 名
然后我刷新了我的后台模块选择,我在installed modules
选项卡下看到了它。(但我在卸载它时已经开始了这些步骤)。然后我尝试卸载它。然后它告诉我
无法卸载模块 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;
}
}