Files
bx.discount/lib/Ajax/BxDiscount.php
T
2026-02-04 14:16:30 +03:00

19 lines
429 B
PHP

<?php
namespace Bx\Discount\Ajax;
use Wt\Core\Ajax\AAjaxHandler;
class BxDiscount extends AAjaxHandler
{
public function ajaxStart()
{
$this->getResponse()->addData(['method' => 'ajaxStart']);
}
public function test()
{
$this->getResponse()->addData(['method' => 'test', 'version' => app()::getInstance('bx.discount')->module()->getVersion()]);
return $this->getResponse();
}
}