Location: PHPKode > projects > Loci > loci-master/request.php
<?php 
/**
 * @package ryanve/loci
 */
 
namespace airve;
use \airve\Loci;
use \airve\Path;
require_once 'bootstrap.php';

\call_user_func(function($query) {
    $params = array();
    \parse_str($query, $params);    
    if (empty($params['request']))
        return false;
    $params['dir'] = isset($params['from']) ? Path::join(
        $params['from'], $params['request']
    ) : $params['request'];
    $inst = Loci::inst(Path::root($params['dir']));
    $inst->data($params, 'query:');
    Loci::trigger('query:');
    $inst->render_e();
}, $_SERVER['QUERY_STRING']);

# Fire and flush event handlers.
Loci::blast(\basename(__FILE__));
#end
Return current item: Loci