$this->addField(['name' => 'page_product',
'label' => 'Page produit',
'type' => 'SelectFromArray',
- 'options' => self::getDataByModel('catalog_products'),
+ 'options' => self::getDataByTable('catalog_products'),
'multiple' => false,
'default' => ''
]);
$this->addField(['name' => 'page_page',
'label' => 'Page generale',
'type' => 'SelectFromArray',
- 'options' => self::getDataByModel('cubist_cms_pages'),
+ 'options' => self::getDataByTable('cubist_cms_pages'),
'multiple' => false,
]);
$this->addField(['name' => 'page_news',
'label' => 'Page actualités',
'type' => 'SelectFromArray',
- 'options' => self::getDataByModel('cubist_news'),
+ 'options' => self::getDataByTable('cubist_news'),
'multiple' => false,
]);
}
- public function getDataByModel($table) {
+ public function getDataByTable($table) {
$column = 'title';
$local = request()->query('locale') ?? $this->defaultLang;