Exemplo n.º 1
0
}
/*
 * ------------------------------------------------------
 *  Is there a "pre_controller" hook?
 * ------------------------------------------------------
 */
//$EXT->_call_hook('pre_controller');
/*
 * ------------------------------------------------------
 *  Instantiate the requested controller
 * ------------------------------------------------------
 */
// Mark a start point so we can benchmark the controller
$BM->mark('controller_execution_time_( ' . $class . ' / ' . $method . ' )_start');
$CI = new $class();
FT_Hooks::set_controller($CI);
/*
 * ------------------------------------------------------
 *  Is there a "post_controller_constructor" hook?
 * ------------------------------------------------------
 */
//$EXT->_call_hook('post_controller_constructor');
/*
 * ------------------------------------------------------
 *  Call the requested method
 * ------------------------------------------------------
 */
// Is there a "remap" function? If so, we call it instead
if (method_exists($CI, '_remap')) {
    $CI->_remap($method, array_slice($URI->rsegments, 2));
} else {
Exemplo n.º 2
0
function hook_header()
{
    FT_Hooks::do_action('hook_header');
}
Exemplo n.º 3
0
 public static function set_controller($controller)
 {
     self::$_controller = $controller;
 }