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.00187 - 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.00215 - Loading view "view/page.html" UltraLight Showcase

Source for controller:form

<?php
namespace App\Controller;
use 
Core\Form\Field;
/**
 * Simple index page, with some buttons for show.
 */
class Form extends Index
{
    protected function 
_run()
    {
        
$example = [=> 'Option 1'=> 'Option 2'10 => 'Option 10'];
        
$values = ['foo' => 'The Foo!''bar' => 'The bar?''other' => 'The other option...'];
        
$form = new \Core\Form(null, ['class' => 'form-horizontal']);
        
$form->fieldSet("Basic fields")
            ->
add(new Field\Value('name', ['label' => 'Value''value' => "A static value."]))
            ->
add(new Field\Input('name', ['label' => 'Input']))
            ->
add(new Field\Password('password', ['label' => 'Password']))
            ->
add(new Field\Text('text', ['label' => 'Text''value' => '<script>supposedly dangerous content</script>']))
            ->
add(new Field\Select('select', ['label' => 'Select''values' => $example'default' => '-select-']))
            ->
add(new Field\Radio('radio', ['label' => 'Radio''values' => $example]))
            ->
add(new Field\CheckBox('checkbox', ['label' => 'Checkbox?']))
            ->
fieldSet("Advanced Fields")
            ->
add(new Field\Raw('html', ['label' => "Raw"'html' => $this->_show('page/html')]))
            ->
add(
                new 
Field\Select(
                    
'multiselect',
                    [
'label' => 'Multi Select''multiple' => true'values' => $example'default' => '-select-']
                )
            )
            ->
add(new Field\CheckBoxes('checkboxes', ['label' => 'Multi checkboxes''values' => $values]))
            ->
add(new Field\Upload('upload', ['label' => 'Upload''value' => '']))
            ->
fieldSet("Submit button")
            ->
add(new Field\Submit('submit', ['value' => 'Submit''class' => 'btn btn-primary']));
        return 
$this->_output('Form example'"$form");
    }
}
CORE/core.php : 185 BASE/index.php : 9 0.00285 - Loaded classes array (14) ( 'Show' => array (2) ( 'file' => "CORE/show.php", 'time' => 0.0002, ), 'Config' => array (2) ( 'file' => "CORE/config.php", 'time' => 0.00023, ), 'Core\Cache' => array (2) ( 'file' => "CORE/core/cache.php", 'time' => 0.00029, ), 'Core\Cache\File' => array (2) ( 'file' => "CORE/core/cache/file.php", 'time' => 0.00029, ), 'Core\Arrays' => array (2) ( 'file' => "CORE/core/arrays.php", 'time' => 0.0005, ), 'Request' => array (2) ( 'file' => "CORE/request.php", 'time' => 0.00083, ), 'Sanitize' => array (2) ( 'file' => "CORE/sanitize.php", 'time' => 0.00086, ), 'Core\Controller' => array (2) ( 'file' => "CORE/core/controller.php", 'time' => 0.00097, ), 'App\Controller\Index' => array (2) ( 'file' => "APP/controller/index.php", 'time' => 0.00098, ), '\App\Controller\Tools\Source' => array (2) ( 'file' => "APP/controller/tools/source.php", 'time' => 0.00098, ), 'Core\View' => array (2) ( 'file' => "CORE/core/view.php", 'time' => 0.00102, ), 'App\Library\Sourcelist' => array (2) ( 'file' => "APP/library/sourcelist.php", 'time' => 0.00179, ), 'Core\Format\Variable' => array (2) ( 'file' => "CORE/core/format/variable.php", 'time' => 0.00197, ), 'Core\Bootstrap\Navbar' => array (2) ( 'file' => "CORE/core/bootstrap/navbar.php", 'time' => 0.0021, ), ) CORE/core.php : 186 BASE/index.php : 9 0.00419 - Debug "Done."