arter / amos-layout
There is no license information available for the latest version (1.2.1) of this package.
Amos Basic Layout
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
1.2.1
2024-05-07 14:19 UTC
Requires
- php: >=5.4.0
- arter/amos-core: ^1.9.58
- arter/amos-dashboard: ^1.9.0
- bower-asset/sticky-sidebar: ^3.2.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-12 18:01:12 UTC
README
Templates, layouts and styles for amos basic installation
Installation
The preferred way to install this extension is through composer.
Either run
composer require arter/amos-layoutor add
"arter/amos-layout": "~1.0"to the require section of your
composer.jsonfile.Add module to your main config in common:
<?php $config = [ 'modules' => [ 'layout' => [ 'class' => 'arter\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']) ], ], ];Add Bootstrap
<?php $config = [ 'bootstrap' => ['layout'] ];
Tools
Get base asset, required for all other assets, this mades easier to use a custom amosLayout instance
<?php
class MyCustomAppAsset extends AssetBundle
{
public $depends = [];
public function init()
{
$this->depends[] = \Yii::$app->layout->baseAssetClass;
parent::init();
}
}
PARAMS
search navbar menu
'searchNavbar' => true