PHP code example of etenil / assegai

1. Go to this page and download the library: Download etenil/assegai library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

etenil / assegai example snippets



    $conf['apps_path'] = __DIR__ . '/apps';

    $conf['apps'] = [
        'helloworld',   
    ];


    namespace helloworld\controllers;
    
    class Hello extends \assegai\Controller
    {
        function sayHello()
        {
            return "Hello, World!";
        }
    }


    $app['route'] = [
        '/' => 'helloworld\controllers\Hello::sayHello',
    ];
 $h->form->input('text', 'foobar') 
 $load_helper('form');