PHP code example of open20 / amos-layout

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

    

open20 / amos-layout example snippets


    
    $config = [
        'modules' => [
            'layout' => [
                'class' => 'open20\amos\layout\Module',
                'advancedLogoutActions' => true, // [OPTIONAL] if you want to display
                // two different logout buttons (one that redirects to login page and one that
                // redirects to main frontend page set in (common) params['platform']['frontendUrl'])
            ],
        ],
    ];
    

    
    $config = [
       'bootstrap' => ['layout']
    ];
    



class MyCustomAppAsset extends AssetBundle
{
    public $depends = [];

    public function init()
    {
        $this->depends[] = \Yii::$app->layout->baseAssetClass;

        parent::init();
    }
}

'searchNavbar' => true