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

OpenCart API API documentation generated by ApiGen dev-master