leilukin-tumbleblog/ajax/index.php

21 lines
437 B
PHP
Raw Normal View History

2024-06-20 14:10:42 +00:00
<?php
define('AJAX', true);
require_once dirname(__FILE__, 2).
DIRECTORY_SEPARATOR.
"includes".
DIRECTORY_SEPARATOR.
"common.php";
# Prepare the controller.
$ajax = AjaxController::current();
# Parse the route.
$route = Route::current($ajax);
# Respond to the request.
$route->init();
$trigger->call("end");
ob_end_flush();