17 lines
464 B
PHP
Raw Normal View History

2016-11-02 11:08:59 +01:00
<?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;
}