Ekdant-Online-Store/catalog/controller/common/search.php

27 lines
611 B
PHP
Raw Normal View History

2024-08-06 12:21:00 +00:00
<?php
namespace Opencart\Catalog\Controller\Common;
/**
* Class Search
*
* @package Opencart\Catalog\Controller\Common
*/
class Search extends \Opencart\System\Engine\Controller {
/**
* @return string
*/
public function index(): string {
$this->load->language('common/search');
$data['text_search'] = $this->language->get('text_search');
if (isset($this->request->get['search'])) {
$data['search'] = $this->request->get['search'];
} else {
$data['search'] = '';
}
$data['language'] = $this->config->get('config_language');
return $this->load->view('common/search', $data);
}
}