1: | <?php
2: | namespace Opencart\Catalog\Controller\Startup;
3: | /**
4: | * Class Startup
5: | *
6: | * @package Opencart\Catalog\Controller\Startup
7: | */
8: | class Startup extends \Opencart\System\Engine\Controller {
9: | /**
10: | * @return void
11: | */
12: | public function index(): void {
13: | // Load startup actions
14: | $this->load->model('setting/startup');
15: |
16: | $results = $this->model_setting_startup->getStartups();
17: |
18: | foreach ($results as $result) {
19: | if (substr($result['action'], 0, 8) == 'catalog/') {
20: | $this->load->controller(substr($result['action'], 8));
21: | }
22: | }
23: | }
24: | }
25: |

OpenCart API API documentation generated by ApiGen dev-master