PHP code example of webware / webware-theme

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

    

webware / webware-theme example snippets


Mezzio\LaminasView\ConfigProvider::class,
Webware\Theme\ConfigProvider::class,

use Webware\Theme\ConfigProvider;

return [
    ConfigProvider::THEME => [
        ConfigProvider::ACTIVE => 'acme',
        ConfigProvider::THEMES => [
            'acme' => [
                // only the addresses this theme overrides
                'layout::default' => __DIR__ . '/../../templates/acme/layout/default.phtml',
            ],
        ],
        ConfigProvider::ASSETS => [
            'acme' => ['theme.css' => 'css/acme.css'],
        ],
    ],
];

<link rel="stylesheet" href="<?= $this->asset('theme.css')