Ejemplo n.º 1
0
<?php

/**
 * xuad.net tutorial: ajax_tutorial
 *
 * Copyright (c) Patrick Mosch
 *
 * @link http://xuad.net
 * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
 */
// Benoetigter AjaxController wird eingebunden
require_once 'classes/AjaxController.php';
// Neue Instanz des Controllers anlegen
$ajaxController = new AjaxController();
// Controller ausfuehren
echo $ajaxController->execute();
Ejemplo n.º 2
0
<?php

namespace de\schulte360\web\requirejs\php;

include "./classes/AjaxController.class.php";
$testClass = new AjaxController(filter_input(INPUT_POST, 'test1', FILTER_SANITIZE_SPECIAL_CHARS), filter_input(INPUT_POST, 'test1', FILTER_SANITIZE_SPECIAL_CHARS));
$testClass->execute();