PHP code example of okfsoft / ci4-hmvc

1. Go to this page and download the library: Download okfsoft/ci4-hmvc 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/ */

    

okfsoft / ci4-hmvc example snippets




$routes->group('home', ['namespace' => $hmvcNamespace], function ($routes) {
	$routes->get('/', 'Home::index');
	$routes->match(['get', 'post'], "(:any)", "home::$1");
});

shell
php spark hmvc:publish