1: | <?php
2: | namespace Opencart\Catalog\Controller\Common;
3: | /**
4: | * Class Search
5: | *
6: | * @package Opencart\Catalog\Controller\Common
7: | */
8: | class Search extends \Opencart\System\Engine\Controller {
9: | /**
10: | * @return string
11: | */
12: | public function index(): string {
13: | $this->load->language('common/search');
14: |
15: | $data['text_search'] = $this->language->get('text_search');
16: |
17: | if (isset($this->request->get['search'])) {
18: | $data['search'] = $this->request->get['search'];
19: | } else {
20: | $data['search'] = '';
21: | }
22: |
23: | $data['language'] = $this->config->get('config_language');
24: |
25: | return $this->load->view('common/search', $data);
26: | }
27: | }
28: |

OpenCart API API documentation generated by ApiGen dev-master