Ekdant-Online-Store/catalog/controller/startup/startup.php
2024-08-06 18:06:00 +05:45

24 lines
537 B
PHP

<?php
namespace Opencart\Catalog\Controller\Startup;
/**
* Class Startup
*
* @package Opencart\Catalog\Controller\Startup
*/
class Startup extends \Opencart\System\Engine\Controller {
/**
* @return void
*/
public function index(): void {
// Load startup actions
$this->load->model('setting/startup');
$results = $this->model_setting_startup->getStartups();
foreach ($results as $result) {
if (substr($result['action'], 0, 8) == 'catalog/') {
$this->load->controller(substr($result['action'], 8));
}
}
}
}