PHP code example of anlutro / l4-core

1. Go to this page and download the library: Download anlutro/l4-core 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/ */

    

anlutro / l4-core example snippets


// either one of these, depending on if you want a sidebar or not
View::alias('c::layout.main-nosidebar', 'c::layout.main');
View::alias('c::layout.main-sidebar', 'c::layout.main');

// register CSS and JS files to be y.min.js'));
	$view->bodyScripts->add(URL::asset('js/bootstrap.min.js'));
	$view->bodyScripts->add(URL::asset('js/app.min.js'));
});