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

27 lines
611 B
PHP

<?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);
}
}