CORE/core/view.php : 237 CORE/core/view.php : 196 CORE/core/controller.php : 120 APP/controller/tools/source.php : 75 CORE/core/controller.php : 89 CORE/core/controller.php : 70 CORE/core.php : 170 BASE/index.php : 9 0.0018 - Loading view "view/page/source.html" CORE/core/view.php : 237 CORE/core/view.php : 196 CORE/core/controller.php : 120 APP/controller/index.php : 65 APP/controller/tools/source.php : 75 CORE/core/controller.php : 89 CORE/core/controller.php : 70 CORE/core.php : 170 BASE/index.php : 9 0.00208 - Loading view "view/page.html" UltraLight Showcase

Source for controller:ajax/example

<?php namespace App\Controller\Ajax;
/**
 * Simple Ajax example, automatically outputs JSON with results.
 */
class Example extends \Core\Controller\Ajax
{

    protected function 
_run()
    {
        
//We pause one quarter of a second on purpose, otherwise it's too fast.
        
usleep(250000);
        
$clicked \Request::value('clicked');
        return [
            
'message' => $this->_getHelloWorld(),
            
'clicked' => "You have clicked $clicked times!",
        ];
    }

    
/**
     * Get semi-randomized hello world string.
     *
     * @return string
     */
    
private function _getHelloWorld()
    {
        
$hello = ['Hello''Good day''G\'day''Hi''Aloha''Hey'];
        
$world = ['world''globe''planet''earth'];
        
shuffle($hello);
        
shuffle($world);
        return 
"{$hello[0]} {$world[0]}!";
    }
}
CORE/core.php : 185 BASE/index.php : 9 0.00221 - Loaded classes array (14) ( 'Show' => array (2) ( 'file' => "CORE/show.php", 'time' => 0.00015, ), 'Config' => array (2) ( 'file' => "CORE/config.php", 'time' => 0.00017, ), 'Core\Cache' => array (2) ( 'file' => "CORE/core/cache.php", 'time' => 0.00021, ), 'Core\Cache\File' => array (2) ( 'file' => "CORE/core/cache/file.php", 'time' => 0.00021, ), 'Core\Arrays' => array (2) ( 'file' => "CORE/core/arrays.php", 'time' => 0.00036, ), 'Request' => array (2) ( 'file' => "CORE/request.php", 'time' => 0.00065, ), 'Sanitize' => array (2) ( 'file' => "CORE/sanitize.php", 'time' => 0.00067, ), 'Core\Controller' => array (2) ( 'file' => "CORE/core/controller.php", 'time' => 0.00074, ), 'App\Controller\Index' => array (2) ( 'file' => "APP/controller/index.php", 'time' => 0.00074, ), '\App\Controller\Tools\Source' => array (2) ( 'file' => "APP/controller/tools/source.php", 'time' => 0.00074, ), 'Core\View' => array (2) ( 'file' => "CORE/core/view.php", 'time' => 0.00077, ), 'App\Library\Sourcelist' => array (2) ( 'file' => "APP/library/sourcelist.php", 'time' => 0.00173, ), 'Core\Format\Variable' => array (2) ( 'file' => "CORE/core/format/variable.php", 'time' => 0.0019, ), 'Core\Bootstrap\Navbar' => array (2) ( 'file' => "CORE/core/bootstrap/navbar.php", 'time' => 0.00203, ), ) CORE/core.php : 186 BASE/index.php : 9 0.00348 - Debug "Done."