17 lines
464 B
PHP
17 lines
464 B
PHP
<?php
|
|
|
|
require_once(dirname(__FILE__) . '/../../config/config.inc.php');
|
|
require_once(dirname(__FILE__) . '/../../init.php');
|
|
|
|
http_response_code(200);
|
|
Context::getContext()->controller->php_self = 'search';
|
|
$doofinder = Module::getInstanceByName('antadis_doofinder');
|
|
|
|
$action = Tools::getValue('action');
|
|
switch ($action) {
|
|
case 'search':
|
|
$response = $doofinder->ajaxSearch(Tools::getValue('search_content'));
|
|
die(Tools::jsonEncode($response));
|
|
break;
|
|
}
|