Example #1
0
 function routeRequest()
 {
     $controller = $this->getSegment(0);
     $method = $this->getSegment(1);
     $arguments = $this->getSegmentSlice(2);
     Controller::invoke($controller, $method, $arguments);
 }
Example #2
0
<?php

include_once "controller/Controller.php";
$controller = new Controller();
$controller->invoke();
Example #3
0
function huge_it_light_box()
{
    include_once "admin/controller/huge_it_light_box.php";
    $controller = new Controller();
    $controller->invoke();
}
<?php

/**
 * www.dandysearch.com
 *
 * @author Colm Nolan
 * @version 1.0
 * @copyright Colm Nolan, 25 July, 2011
 * @Comp 30440 MSc Software Engineering Project
 **/
/**
 * Metasearch Engine Evaluation Module
 */
include_once "controller/controller_evaluation.php";
$controller_evaluation;
$controller_evaluation = new Controller();
$controller_evaluation->invoke();
Example #5
0
<?php

/**
 * User: Milos Savic
 * This file will delegate all the requests to the controller
 */
include_once "controllers/parser_controller.php";
if (isset($_POST['address']) && isset($_POST['item'])) {
    $controller = new Controller($_POST['address'], $_POST['item']);
    $results = $controller->invoke();
    $json = array('success' => 1, 'results' => $results['nodes'], 'links' => $results['links']);
    echo json_encode($json);
} else {
    $json = array('success' => 0, 'message' => 'Missing input data.');
    echo json_encode($json);
}