Last active
January 9, 2023 20:02
-
-
Save karamansky/d515640251b16490493923f4bb079284 to your computer and use it in GitHub Desktop.
Opencart: Get module code by id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* sk_code | |
получаем код модуля с ИД 45 | |
*/ | |
$this->load->model('setting/module'); | |
$module_id = 45; | |
$sk_module_info = $this->model_setting_module->getModule($module_id); | |
if ($sk_module_info && $sk_module_info['status']) { | |
$data['sk_module'] = $this->load->controller('extension/module/html', $sk_module_info); | |
}else{ | |
$data['sk_module'] = ''; | |
} | |
/* sk_code */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment