【问题标题】:Prestashop Table in module helper form模块助手形式的 Prestashop 表
【发布时间】:2017-01-27 14:12:50
【问题描述】:

在模块助手表单中,blocktopmenu.php 中有这些说明

$helper->table = $this->table;
$helper->identifier = $this->identifier;

$this->table 继承自 Module 类

protected $table = 'module';

模块属于哪个表?也用于标识符属性

【问题讨论】:

    标签: php oop module prestashop prestashop-1.6


    【解决方案1】:

    正如它所说的那样。

    表为module,不带前缀,标识符属性表示主键id_module

    【讨论】:

    • Db::getInstance()->insert($this->table, array('name' => $this->name, 'active' => 1, 'version' => $这个->版本));在 Module.php 中,因此 name 将是模块名称
    猜你喜欢
    • 1970-01-01
    • 2020-04-14
    • 2015-01-28
    • 2012-08-31
    • 1970-01-01
    • 1970-01-01
    • 2011-06-30
    • 2015-04-17
    • 2019-05-18
    相关资源
    最近更新 更多