我已经开发了一个自定义模块,并从后台安装了它。后来我被要求更改模块名称。
我尝试了这些步骤。
-
卸载我的模块
-
重命名我的模块文件夹名称(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;
}
}