Beispiel #1
0
 public function index()
 {
     View::load('App.Welcome', []);
 }
Beispiel #2
0
$nsclass = [$class, DS . 'App' . DS . 'controller' . DS . $class, $ns . $class];
foreach ($nsclass as $name) {
    if (class_exists($name)) {
        $class = $name;
        break;
    }
}
$SKY = new $class();
if (!method_exists($SKY, '__init') or !method_exists($SKY, '__output')) {
    $LOG->write(500, $class . ' Missing Method __init or __output');
    Exceptions::showError('Server Error', 'Missing Method __init or __output');
}
/*
|--------------------------------------------------------------------------
| Start Running Controller
|--------------------------------------------------------------------------
*/
$SKY->__init($method, array_slice($RTR->segments, 2));
/*
|--------------------------------------------------------------------------
| Render Output Controller
|--------------------------------------------------------------------------
*/
OUTPUT:
if (isset($SKY)) {
    $SKY->__output(View::getTemp());
} else {
    $OUT->render();
}
// Banzai!!!!!
$LOG->write(100, '*********** Completed at : ' . $BM->elapsedTime('start_sky') . ' | ' . $BM->memoryUsage() . ' ***********');