wp_back/wp-content/plugins/smart-slider-3/Nextend/Framework/Content/ControllerAjaxContent.php
2024-05-20 15:37:46 +03:00

25 lines
626 B
PHP

<?php
namespace Nextend\Framework\Content;
use Nextend\Framework\Controller\Admin\AdminAjaxController;
use Nextend\Framework\Request\Request;
class ControllerAjaxContent extends AdminAjaxController {
public function actionSearchLink() {
$this->validateToken();
$keyword = Request::$REQUEST->getVar('keyword', '');
$this->response->respond(Content::searchLink($keyword));
}
public function actionSearchContent() {
$this->validateToken();
$keyword = Request::$REQUEST->getVar('keyword', '');
$this->response->respond(Content::searchContent($keyword));
}
}