Esempio n. 1
0
function izap_pagehandler_bridge($page)
{
    // set page Owner first, plugins can change it later
    IzapBase::setPageOwner($page[1]);
    // get the context to get the controller
    $context = elgg_get_context();
    //defines the controller class
    $class = 'Izap' . ucfirst($context) . 'Controller';
    //global definition for the class
    define('GLOBAL_IZAP_CURRENT_CONTROLLER', $class);
    // now start the action
    $controller = new $class($page);
    //calls the action of the class controller
    $controller->runAction();
    return true;
}